Skip to content

Commit 9f7d763

Browse files
author
Davies Liu
committed
cast date to string
1 parent 55bb6a9 commit 9f7d763

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ object Cast {
9292

9393
case (StringType, BinaryType) => false
9494
case (StringType, _) => true
95+
case (_, StringType) => false
9596

9697
case (FloatType | DoubleType, TimestampType) => true
9798
case (TimestampType, DateType) => false

0 commit comments

Comments
 (0)