Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/20067#discussion_r158632329
--- Diff: sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
---
@@ -2760,6 +2760,17 @@ class SQLQuerySuite extends QueryTest with
SharedSQLContext {
}
}
+ test("SPARK-22894: DateTimeOperations should accept SQL like string
type") {
+ val date = "2017-12-24"
+ val str = sql(s"SELECT CAST('$date' as STRING) + interval 2 months 2
seconds")
--- End diff --
So far, we issue an exception. What is the behavior of Hive?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]