[ 
https://issues.apache.org/jira/browse/SPARK-46380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SPARK-46380:
-----------------------------------
    Labels: pull-request-available  (was: )

> Replacing current time prior to inline table eval
> -------------------------------------------------
>
>                 Key: SPARK-46380
>                 URL: https://issues.apache.org/jira/browse/SPARK-46380
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.0.0
>            Reporter: Aleksandar Tomic
>            Priority: Major
>              Labels: pull-request-available
>
> When current time/date specific functions are being used as part of inline 
> tables each invocation will be evaluated. Instead, proper behaviour would be 
> to replace time expressions with current time/date and always return single 
> value. Example
> SELECT COUNT(DISTINCT ct) FROM VALUES
> (CURRENT_TIMESTAMP()),
> (CURRENT_TIMESTAMP()),
> (CURRENT_TIMESTAMP()) as data(ct)
>  
> Is supposed to return 1, while currently it returns 3.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to