-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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: add window function NTILE #9682
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9682 +/- ##
================================================
- Coverage 67.2243% 67.1998% -0.0246%
================================================
Files 380 381 +1
Lines 79788 79835 +47
================================================
+ Hits 53637 53649 +12
- Misses 21361 21404 +43
+ Partials 4790 4782 -8 |
executor/aggfuncs/func_ntile.go
Outdated
|
||
type partialResult4Ntile struct { | ||
curIdx uint64 | ||
divisor uint64 |
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.
Is it needed? Can we just use the n
in ntile
?
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
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
What problem does this PR solve?
Implement window function NTILE. It divides the rows into n groups, and returns the group number a row belongs to.
Part of #9499
What is changed and how it works?
Implement its execution logic
Check List
Tests
Related changes