-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: 1554 lag correctness #1605
fix: 1554 lag correctness #1605
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1605 +/- ##
============================================
+ Coverage 73.58% 73.65% +0.07%
Complexity 347 347
============================================
Files 614 614
Lines 119908 119984 +76
Branches 1010 1010
============================================
+ Hits 88233 88373 +140
+ Misses 31466 31402 -64
Partials 209 209
Continue to review full report at Codecov.
|
TODO: discuss TTL cal in deploy progress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Don't merge util performance issue resolved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
performance issue of unbound window frame
24f7242
to
20b3265
Compare
…rent row - logic plan: for lag/at project, it will create a new `ProjectListNode` with window frame bound to [unbound, current row] - the fix may not work in batch-request or cluster environment
it will create a new rows window for lag like functions
we don't allow lag offset as a udf call
b5befb6
to
3d4a879
Compare
close #1554
for those where
lag
function exists in sql, e.gthe logic plan is constructed, previous:
after the PR:
add a restriction to
lag
's offset: it must be constantthe
lag
project node will splited into seperate project list if:lag
over arows_range
windownew window is a
ROWS
type window:max_size
This is a internal split that happens before window merge, so mergable window can still merged based on original logic