-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
executor: Improve the performance of aggFuncSum
by using sliding window
#14887
Conversation
/run-all-tests |
Codecov Report
@@ Coverage Diff @@
## master #14887 +/- ##
===========================================
Coverage ? 80.4706%
===========================================
Files ? 503
Lines ? 133609
Branches ? 0
===========================================
Hits ? 107516
Misses ? 17681
Partials ? 8412 |
/run-all-tests |
5bf64de
to
ab15611
Compare
PTAL @lamxTyler @SunRunAway |
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.
Hi, @mmyj
I'm appreciating your great job. I've left some comments, PTAL.
And it's better to change your PR title in a proper summary.
WindowExec
by using sliding window #14294aggFuncSum
by using sliding window #14294
aggFuncSum
by using sliding window #14294WindowExec
by using sliding window
WindowExec
by using sliding windowaggFuncSum
by using sliding window
@lamxTyler, @SunRunAway, @qw4990, @wshwsh12, PTAL. |
1 similar comment
@lamxTyler, @SunRunAway, @qw4990, @wshwsh12, PTAL. |
@lamxTyler, @SunRunAway, @qw4990, @wshwsh12, PTAL. |
2 similar comments
@lamxTyler, @SunRunAway, @qw4990, @wshwsh12, PTAL. |
@lamxTyler, @SunRunAway, @qw4990, @wshwsh12, PTAL. |
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
/run-all-tests |
@mmyj merge failed. |
/run-all-tests |
What problem does this PR solve?
part of #12967
1 Fix a bug of windowFuncBenchmark, It causes the arg
ndv
, the count of distinct group-by keys, can not work.2 Modify the
rangeFrameWindowProcessor.appendResult2Chunk
by using sliding window.3 Implement the
aggFuncSum
using sliding window.4 Add a new variable
windowing_use_high_precision
.Check List
Tests
executor/window_test.go:222 TestSlidingWindowFunctions
Code changes
1 The
partialResult4Count
of theaggFuncCount
, using a struct saves the partialResult like the other aggFunc, likeaggFuncSum
.2 Add a partialResult named
slidingWindowVal
forpartialResult
, it used for saving the partialResult of the slidingWindow3 Abort the
WindowProcessor.appendResult2Chunk
, we need use theResetSlidePartialResult
to reset the partialResult of the slidingWindow after a sliding window are evaluated completely.Side effects
note:
windowing_use_high_precision
=truenew.txt
old.txt