You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] eventstats/streamstats reject window functions that grammar accepts #5168
I just checked some other popular engine that adopts pipeline query language. They don't support such window functions as row_number(), rank(), dense_rank() and nth_value() for similar commands. It makes sense because those SQL compatible functions requires the ordering, otherwise it's meaningless. However, both eventstats and streamstats only has partition by semantics, no order by semantics.
So could we make it non bug issue? Instead, we can mark it as error-experience to improve error message to not confuse users.
Per the discussion above, this has been relabeled as an error-experience improvement rather than a missing-feature bug — rank/dense_rank/nth_value need ORDER BY semantics that eventstats/streamstats don't have.
Opened #5600 to improve the error message: instead of a bare "Unexpected window function: X", it now names the rejected function and lists the functions that are actually supported, so users get actionable guidance instead of a confusing error.
Activity
Add missing window function mappings for eventstats/streamstats
[BugFix] Fix window function parser mismatch (opensearch-project#5168)
[BugFix] Fix eventstats/streamstats rejecting window ranking functions (
songkant-aws commentedon Apr 8, 2026
I just checked some other popular engine that adopts pipeline query language. They don't support such window functions as row_number(), rank(), dense_rank() and nth_value() for similar commands. It makes sense because those SQL compatible functions requires the ordering, otherwise it's meaningless. However, both eventstats and streamstats only has
partition bysemantics, noorder bysemantics.So could we make it non
bugissue? Instead, we can mark it aserror-experienceto improve error message to not confuse users.feat(calcite): support window functions, ROW_NUMBER, and register ISNULL
feat(calcite): support window functions, ROW_NUMBER, and register ISNULL
feat(calcite): support window functions, ROW_NUMBER, and register ISNULL
feat(calcite): support window functions, ROW_NUMBER, and register ISNULL
Resolve SQL unified query gaps for SELECT clauses and window functions (
gingeekrishna commentedon Jun 30, 2026
Per the discussion above, this has been relabeled as an error-experience improvement rather than a missing-feature bug —
rank/dense_rank/nth_valueneedORDER BYsemantics thateventstats/streamstatsdon't have.Opened #5600 to improve the error message: instead of a bare
"Unexpected window function: X", it now names the rejected function and lists the functions that are actually supported, so users get actionable guidance instead of a confusing error.Resolve SQL unified query gaps for SELECT clauses and window functions (
feat(sql): Support RANK/DENSE_RANK in Calcite
feat(sql): Support RANK/DENSE_RANK in Calcite
feat(sql): Support RANK/DENSE_RANK in Calcite
feat(sql): Support RANK/DENSE_RANK in Calcite (#5720)
Improve error message for unsupported window functions in eventstats/…