Repository: spark
Updated Branches:
  refs/heads/branch-1.3 2dd17d431 -> ae461e73f


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

Author: 云峤 <[email protected]>

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

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

(cherry picked from commit 7143f6e9718bae9cffa0a73df03ba8c9860ee129)
Signed-off-by: Reynold Xin <[email protected]>


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

Branch: refs/heads/branch-1.3
Commit: ae461e73faa5904c7748976162c61330b5be3a4b
Parents: 2dd17d4
Author: 云峤 <[email protected]>
Authored: Wed Apr 29 18:23:42 2015 -0700
Committer: Reynold Xin <[email protected]>
Committed: Wed Apr 29 18:23:48 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/ae461e73/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 d1abf3c..8b66408 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
@@ -631,6 +631,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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to