Skip to content

Commit

Permalink
[SPARK-7234][SQL] Fix DateType mismatch when codegen on.
Browse files Browse the repository at this point in the history
Author: 云峤 <chensong.cs@alibaba-inc.com>

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

1ad4cff [云峤] SPARK-7234 fix dateType mismatch
  • Loading branch information
云峤 authored and rxin committed Apr 30, 2015
1 parent 1b7106b commit 7143f6e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 7143f6e

Please sign in to comment.