flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twal...@apache.org
Subject flink git commit: [FLINK-8136] [table] Fix code generation with JodaTime shading
Date Wed, 22 Nov 2017 17:21:10 GMT
Repository: flink
Updated Branches:
  refs/heads/release-1.4 6cb8b5b12 -> 281579621


[FLINK-8136] [table] Fix code generation with JodaTime shading

This closes #5054.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/28157962
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/28157962
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/28157962

Branch: refs/heads/release-1.4
Commit: 28157962196cecb94a59720e92cbf3682418e821
Parents: 6cb8b5b
Author: twalthr <twalthr@apache.org>
Authored: Wed Nov 22 17:43:08 2017 +0100
Committer: twalthr <twalthr@apache.org>
Committed: Wed Nov 22 18:20:19 2017 +0100

----------------------------------------------------------------------
 .../main/scala/org/apache/flink/table/codegen/CodeGenerator.scala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/28157962/flink-libraries/flink-table/src/main/scala/org/apache/flink/table/codegen/CodeGenerator.scala
----------------------------------------------------------------------
diff --git a/flink-libraries/flink-table/src/main/scala/org/apache/flink/table/codegen/CodeGenerator.scala
b/flink-libraries/flink-table/src/main/scala/org/apache/flink/table/codegen/CodeGenerator.scala
index a794b08..7660e2b 100644
--- a/flink-libraries/flink-table/src/main/scala/org/apache/flink/table/codegen/CodeGenerator.scala
+++ b/flink-libraries/flink-table/src/main/scala/org/apache/flink/table/codegen/CodeGenerator.scala
@@ -44,6 +44,7 @@ import org.apache.flink.table.functions.utils.UserDefinedFunctionUtils
 import org.apache.flink.table.typeutils.TimeIndicatorTypeInfo
 import org.apache.flink.table.functions.{FunctionContext, UserDefinedFunction}
 import org.apache.flink.table.typeutils.TypeCheckUtils._
+import org.joda.time.format.DateTimeFormatter
 
 import scala.collection.JavaConversions._
 import scala.collection.mutable
@@ -1457,7 +1458,7 @@ abstract class CodeGenerator(
 
     val field =
       s"""
-         |final org.joda.time.format.DateTimeFormatter $fieldTerm;
+         |final ${classOf[DateTimeFormatter].getCanonicalName} $fieldTerm;
          |""".stripMargin
     reusableMemberStatements.add(field)
 


Mime
View raw message