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

    https://github.com/apache/spark/pull/20067#discussion_r158657480
  
    --- 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 --
    
    I saw the original PR 
https://github.com/apache/spark/pull/7754/files#r35821191
    
    Maybe the SQL API should support it since we do support it in DataFrame 
APIs. 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to