Skip to content
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

Merged
merged 7 commits into from
Mar 15, 2019
Merged

Conversation

winoros
Copy link
Member

@winoros winoros commented Mar 12, 2019

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

  • Unit test

Related changes

  • Need to update the documentation

@winoros winoros added the sig/execution SIG execution label Mar 12, 2019
@alivxxx alivxxx mentioned this pull request Mar 12, 2019
11 tasks
@codecov
Copy link

codecov bot commented Mar 13, 2019

Codecov Report

Merging #9682 into master will decrease coverage by 0.0245%.
The diff coverage is 0%.

@@               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


type partialResult4Ntile struct {
curIdx uint64
divisor uint64
Copy link
Contributor

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?

@winoros winoros requested a review from alivxxx March 15, 2019 07:09
Copy link
Contributor

@alivxxx alivxxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alivxxx alivxxx added the status/LGT1 Indicates that a PR has LGTM 1. label Mar 15, 2019
Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@winoros winoros merged commit 3a48d9c into pingcap:master Mar 15, 2019
@winoros winoros deleted the window-ntile branch March 15, 2019 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants