-
-
Notifications
You must be signed in to change notification settings - Fork 268
PERCENT_RANK may return NaN instead of 0 #8589
Copy link
Copy link
Closed
Labels
affect-version: 4.0.5affect-version: 5.0.2affect-version: 6.0 Initialcomponent: enginefix-version: 4.0.6fix-version: 5.0.3fix-version: 6.0 Alpha 1qa: done successfullyrlsnotes60: noIntentionally not added to the Firebird 6.0 release notes.Intentionally not added to the Firebird 6.0 release notes.type: bug
Metadata
Metadata
Assignees
Labels
affect-version: 4.0.5affect-version: 5.0.2affect-version: 6.0 Initialcomponent: enginefix-version: 4.0.6fix-version: 5.0.3fix-version: 6.0 Alpha 1qa: done successfullyrlsnotes60: noIntentionally not added to the Firebird 6.0 release notes.Intentionally not added to the Firebird 6.0 release notes.type: bug
PERCENT_RANKcan returnNaNinstead of0e0(0) in some cases:(example obtained from a Hibernate test):
With setup code
The query
produces
Those NaN values should all be zero.
See also ISO/IEC 9075-2:2023 9.23 Evaluation and transformation of <window function>, specifically syntax rule 5g