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

planner: make WindowFunction uncacheable in prepare #11035

Merged
merged 4 commits into from
Jul 3, 2019

Conversation

winoros
Copy link
Member

@winoros winoros commented Jul 2, 2019

What problem does this PR solve?

FrameBound is pre-calculated when building logical plan. So it will cause error if we cache it.

But it's safe to evaluate it later in execution phase. We'll make it cacheable in the future.

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch

@winoros winoros added type/bugfix This PR fixes a bug. sig/planner SIG: Planner labels Jul 2, 2019
@codecov
Copy link

codecov bot commented Jul 2, 2019

Codecov Report

Merging #11035 into master will decrease coverage by 0.0551%.
The diff coverage is n/a.

@@               Coverage Diff               @@
##             master    #11035        +/-   ##
===============================================
- Coverage   81.1212%   81.066%   -0.0552%     
===============================================
  Files           419       419                
  Lines         90350     89580       -770     
===============================================
- Hits          73293     72619       -674     
+ Misses        11785     11731        -54     
+ Partials       5272      5230        -42

@winoros
Copy link
Member Author

winoros commented Jul 2, 2019

/run-all-tests tidb-test=pr/759

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

Copy link
Contributor

@lzmhhh123 lzmhhh123 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/LGT2 Indicates that a PR has LGTM 2. label Jul 3, 2019
@alivxxx alivxxx merged commit d1dc97c into pingcap:master Jul 3, 2019
winoros added a commit to winoros/tidb that referenced this pull request Jul 3, 2019
@winoros winoros deleted the uncacheable-window-in-prepare branch September 5, 2019 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/planner SIG: Planner status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants