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: fix TiDB server panic when uses indexMerge with the virtual generated column #17065

Merged

Conversation

wjhuang2016
Copy link
Member

What problem does this PR solve?

Issue Number: close #17045

Problem Summary:
Previously, we didn't consider index merge when implemented the virtual generated column.

What is changed and how it works?

  1. Expand column info for the virtual generated column.
  2. Resolved indices for PhysicalIndexMergeReader.

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Integration test

Side effects

Release note

  • Fix TiDB server panic when uses indexMerge with the virtual generated column.

@wjhuang2016 wjhuang2016 requested review from a team as code owners May 9, 2020 09:30
@ghost ghost requested review from wshwsh12 and lzmhhh123 and removed request for a team May 9, 2020 09:30
@codecov
Copy link

codecov bot commented May 9, 2020

Codecov Report

Merging #17065 into master will increase coverage by 0.2079%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             master     #17065        +/-   ##
================================================
+ Coverage   80.0128%   80.2207%   +0.2079%     
================================================
  Files           510        510                
  Lines        138984     140430      +1446     
================================================
+ Hits         111205     112654      +1449     
+ Misses        18817      18760        -57     
- Partials       8962       9016        +54     

Copy link
Contributor

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

@bb7133 bb7133 left a comment

Choose a reason for hiding this comment

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

LGTM

@bb7133 bb7133 added the status/can-merge Indicates a PR has been approved by a committer. label May 10, 2020
@sre-bot
Copy link
Contributor

sre-bot commented May 10, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented May 10, 2020

@wjhuang2016 merge failed.

@wjhuang2016
Copy link
Member Author

/merge

@sre-bot
Copy link
Contributor

sre-bot commented May 11, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented May 11, 2020

@wjhuang2016 merge failed.

@wjhuang2016
Copy link
Member Author

/merge

@sre-bot
Copy link
Contributor

sre-bot commented May 11, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented May 11, 2020

@wjhuang2016 merge failed.

@wjhuang2016
Copy link
Member Author

/run-all-tests

@Deardrops
Copy link
Contributor

/merge

@sre-bot
Copy link
Contributor

sre-bot commented May 11, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented May 11, 2020

@wjhuang2016 merge failed.

@wjhuang2016
Copy link
Member Author

/merge

@sre-bot
Copy link
Contributor

sre-bot commented May 11, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented May 11, 2020

@wjhuang2016 merge failed.

@wjhuang2016
Copy link
Member Author

/run-common-test

@wjhuang2016 wjhuang2016 merged commit d8c0659 into pingcap:master May 11, 2020
@wjhuang2016
Copy link
Member Author

/run-cherry-picker

sre-bot pushed a commit to sre-bot/tidb that referenced this pull request May 12, 2020
Signed-off-by: sre-bot <sre-bot@pingcap.com>
@sre-bot
Copy link
Contributor

sre-bot commented May 12, 2020

cherry pick to release-4.0 in PR #17126

sre-bot added a commit that referenced this pull request May 14, 2020
@wjhuang2016 wjhuang2016 deleted the fix_indexmerge_virtual_generated_column branch November 17, 2022 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression status/can-merge Indicates a PR has been approved by a committer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic when virtual columns evaluated in index merge reader
4 participants