Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0.0
Description
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.