Skip to content
Snippets Groups Projects
Commit 7143f6e9 authored by 云峤's avatar 云峤 Committed by Reynold Xin
Browse files

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

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

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

1ad4cff [云峤] SPARK-7234 fix dateType mismatch
parent 1b7106b8
No related branches found
No related tags found
No related merge requests found
......@@ -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))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment