-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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: show information about table partitions in information_schema.PARTITIONS
#14347
Conversation
@tangwz thanks! Could you please add some unit tests in this PR? |
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.
@tangwz Thanks~
Please add some tests for this.
A simple way is adding some integration tests like what we do in expression/integration_test.go
, for example:
MustExec("CREATE TABLE ... PARTITION ...")
results := MustQuery("SELECT * FROM INFORMATION_SCHEMA.PARTITIONS")
// check results
@tangwz Friendly ping, please address these comments. |
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.
I do not quite understand the test code, why do we need to update the statistics before check?
@tangwz, please update your pull request. |
@tangwz, please update your pull request. |
LGTM, PTAL @tiancaiamao |
LGTM |
/merge |
/run-all-tests |
/merge |
Your auto merge job has been accepted, waiting for 14279 |
/run-all-tests |
…chema.PARTITIONS` (pingcap#14347)
What problem does this PR solve?
fixes: #13905
What is changed and how it works?
Check List
Tests