[
https://issues.apache.org/jira/browse/SPARK-46380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun closed SPARK-46380.
---------------------------------
> 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
> Assignee: Aleksandar Tomic
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.5.1, 4.0.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]