[ https://issues.apache.org/jira/browse/SPARK-46380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-46380. --------------------------------- Fix Version/s: 3.5.1 4.0.0 Resolution: Fixed Issue resolved by pull request 44316 [https://github.com/apache/spark/pull/44316] > 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: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org