Github user wangyum commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20067#discussion_r158648321
  
    --- 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 --
    
    But Spark was originally supported:
    
https://github.com/apache/spark/blob/bc0848b4c1ab84ccef047363a70fd11df240dbbf/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercionSuite.scala#L1083


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to