Repository: spark Updated Branches: refs/heads/master 1b7106b86 -> 7143f6e97
[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 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: äºå³¤ <[email protected]> Authored: Wed Apr 29 18:23:42 2015 -0700 Committer: Reynold Xin <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
