Skip to content

Commit

Permalink
SPARK-7234 fix dateType mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
云峤 committed Apr 29, 2015
1 parent ca55dc9 commit 1ad4cff
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 1ad4cff

Please sign in to comment.