[ 
https://issues.apache.org/jira/browse/SPARK-32273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17155398#comment-17155398
 ] 

Wenchen Fan commented on SPARK-32273:
-------------------------------------

I think there are a lot more datetime functions to be considered for the ANSI 
flag, like `to_timestamp`, `to_date`, `date_trunc`, `make_interval`, etc.

> Support ANSI dialect in MAKE_DATE and MAKE_TIMESTAMP 
> -----------------------------------------------------
>
>                 Key: SPARK-32273
>                 URL: https://issues.apache.org/jira/browse/SPARK-32273
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: Maxim Gekk
>            Priority: Minor
>
> The MAKE_DATE and MAKE_TIMESTAMP functions should throw an exception for 
> invalid parameters in the ANSI dialect (spark.sql.ansi.enabled is true) 
> instead of NULLs.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to