Uh oh!
There was an error while loading. Please reload this page.
[feature](function) support nth_value window function - #50559
Conversation
hello-stephen
commented
Apr 30, 2025
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
zhangstar333
commented
Apr 30, 2025
run buildall |
doris-robot
commented
Apr 30, 2025
TPC-H: Total hot run time: 33702 ms |
doris-robot
commented
Apr 30, 2025
TPC-DS: Total hot run time: 192571 ms |
doris-robot
commented
Apr 30, 2025
ClickBench: Total hot run time: 29.03 s |
hello-stephen
commented
Apr 30, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
zhangstar333
commented
Apr 30, 2025
run buildall |
doris-robot
commented
Apr 30, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Apr 30, 2025
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
zhangstar333
commented
May 6, 2025
run buildall |
doris-robot
commented
May 6, 2025
TPC-H: Total hot run time: 34618 ms |
doris-robot
commented
May 6, 2025
TPC-DS: Total hot run time: 185549 ms |
doris-robot
commented
May 6, 2025
ClickBench: Total hot run time: 29.23 s |
hello-stephen
commented
May 6, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
May 6, 2025
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
### What problem does this PR solve? Problem Summary: doc: apache/doris-website#2350 support nth_value window function nth_value(column, offset), offset is positive number
### What problem does this PR solve? Related PR: #50559 Problem Summary: nth_value over an upper-bounded/lower-unbounded window frame such as ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING is normalized by reversing the order and frame, then evaluating nth_value with a negative offset over a cumulative frame. The BE nth_value window state replaced the tracked frame row count on each range update, so later rows in the cumulative frame could address the wrong row or return NULL. The fix keeps the cumulative frame row count across range updates, and FE preserves literal offset typing when negating bigint nth_value arguments. This adds BE unit coverage for the reversed cumulative execution path and a regression case comparing nth_value to lead for the original SQL frame. ### Release note Fix nth_value results for ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING window frames.
### What problem does this PR solve? Related PR: #50559 Problem Summary: nth_value over an upper-bounded/lower-unbounded window frame such as ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING is normalized by reversing the order and frame, then evaluating nth_value with a negative offset over a cumulative frame. The BE nth_value window state replaced the tracked frame row count on each range update, so later rows in the cumulative frame could address the wrong row or return NULL. The fix keeps the cumulative frame row count across range updates, and FE preserves literal offset typing when negating bigint nth_value arguments. This adds BE unit coverage for the reversed cumulative execution path and a regression case comparing nth_value to lead for the original SQL frame. ### Release note Fix nth_value results for ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING window frames.
What problem does this PR solve?
Problem Summary:
doc: apache/doris-website#2350
support nth_value window function
nth_value(column, offset), offset is positive number
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)