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

infoschema: Migrate the infoschema's retrieving data logic for 'schemata' to executor #14704

Merged
merged 49 commits into from
Feb 18, 2020
Merged

infoschema: Migrate the infoschema's retrieving data logic for 'schemata' to executor #14704

merged 49 commits into from
Feb 18, 2020

Conversation

reafans
Copy link
Contributor

@reafans reafans commented Feb 10, 2020

What problem does this PR solve?

Infoschema contains too much logic for retrieving data, which is confusing, we need to migrate this part to the executor so that infoshema only contains schema information.

What is changed and how it works?

  • add a InfoschemaReaderExec struct which implement Executor interface.
  • add a memtableRetriever struct which implement memTableRetriever interface.
  • add a new file infoschema_reader.go to executor pkg, migrate the dataForSchemata() and dataForSchemata() from infoschema pkg to executor/infoschema_reader.go

Check List

Tests

  • Unit test

Code changes

  • Has exported function/method change

@reafans
Copy link
Contributor Author

reafans commented Feb 10, 2020

/run-all-tests

@reafans
Copy link
Contributor Author

reafans commented Feb 10, 2020

/run-unit-tests

@reafans
Copy link
Contributor Author

reafans commented Feb 10, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Feb 18, 2020

/run-all-tests

@sre-bot sre-bot merged commit 249ff99 into pingcap:master Feb 18, 2020
This was referenced Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/infoschema status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants