Skip to content

Commit

Permalink
Fix nullabilities of Cast related to DateType.
Browse files Browse the repository at this point in the history
  • Loading branch information
ueshin committed Oct 16, 2014
1 parent 293a0b5 commit ca4a745
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ case class Cast(child: Expression, dataType: DataType) extends UnaryExpression w
case (StringType, _: NumericType) => true
case (StringType, TimestampType) => true
case (StringType, DateType) => true
case (_: NumericType, DateType) => true
case (BooleanType, DateType) => true
case (DateType, _: NumericType) => true
case (DateType, BooleanType) => true
case _ => child.nullable
}

Expand Down

0 comments on commit ca4a745

Please sign in to comment.