Skip to content

Commit

Permalink
We can cast a double to a date
Browse files Browse the repository at this point in the history
This is days since epoch
  • Loading branch information
Fokko committed Jun 28, 2020
1 parent 9fba69e commit bbf72c4
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,6 @@ abstract class CastSuiteBase extends SparkFunSuite with ExpressionEvalHelper {
assert(cast(1, DateType).checkInputDataTypes().isFailure)
assert(cast(1L, DateType).checkInputDataTypes().isFailure)
assert(cast(1.0.toFloat, DateType).checkInputDataTypes().isFailure)
assert(cast(1.0, DateType).checkInputDataTypes().isFailure)
}

test("SPARK-20302 cast with same structure") {
Expand Down

0 comments on commit bbf72c4

Please sign in to comment.