Skip to content

Commit ae461e7

Browse files
云峤rxin
authored andcommitted
[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 7143f6e) Signed-off-by: Reynold Xin <[email protected]>
1 parent 2dd17d4 commit ae461e7

File tree

1 file changed

+1
-0
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen

1 file changed

+1
-0
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ abstract class CodeGenerator[InType <: AnyRef, OutType <: AnyRef] extends Loggin
631631
case DoubleType => ru.Literal(Constant(-1.toDouble))
632632
case DecimalType() => q"org.apache.spark.sql.types.Decimal(-1)"
633633
case IntegerType => ru.Literal(Constant(-1))
634+
case DateType => ru.Literal(Constant(-1))
634635
case _ => ru.Literal(Constant(null))
635636
}
636637

0 commit comments

Comments
 (0)