You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2015/04/30 03:23:45 UTC

spark git commit: [SPARK-7234][SQL] Fix DateType mismatch when codegen on.

Repository: spark
Updated Branches:
  refs/heads/master 1b7106b86 -> 7143f6e97


[SPARK-7234][SQL] Fix DateType mismatch when codegen on.

Author: 云峤 <ch...@alibaba-inc.com>

Closes #5778 from kaka1992/fix_codegenon_datetype_mismatch and squashes the following commits:

1ad4cff [云峤] SPARK-7234 fix dateType mismatch


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

Branch: refs/heads/master
Commit: 7143f6e9718bae9cffa0a73df03ba8c9860ee129
Parents: 1b7106b
Author: 云峤 <ch...@alibaba-inc.com>
Authored: Wed Apr 29 18:23:42 2015 -0700
Committer: Reynold Xin <rx...@databricks.com>
Committed: Wed Apr 29 18:23:42 2015 -0700

----------------------------------------------------------------------
 .../spark/sql/catalyst/expressions/codegen/CodeGenerator.scala      | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/7143f6e9/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala
----------------------------------------------------------------------
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala
index dbc92fb..d17af0e 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala
@@ -672,6 +672,7 @@ abstract class CodeGenerator[InType <: AnyRef, OutType <: AnyRef] extends Loggin
     case DoubleType => ru.Literal(Constant(-1.toDouble))
     case DecimalType() => q"org.apache.spark.sql.types.Decimal(-1)"
     case IntegerType => ru.Literal(Constant(-1))
+    case DateType => ru.Literal(Constant(-1))
     case _ => ru.Literal(Constant(null))
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org