-
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
ddl: check expr restriction for hash partitioned table #10273
Conversation
The return type of the expr should be int, and only part of functions are allowed
PTAL @crazycs520 |
/rebuild |
Codecov Report
@@ Coverage Diff @@
## master #10273 +/- ##
================================================
- Coverage 77.3592% 77.3506% -0.0086%
================================================
Files 412 412
Lines 85717 85711 -6
================================================
- Hits 66310 66298 -12
- Misses 14373 14378 +5
- Partials 5034 5035 +1 |
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.
change https://github.com/pingcap/tidb/pull/10273/files#diff-07905132777c6fce0d33bf8f27a5dfaeR205 to
if s.Partition.Tp == model.PartitionTypeRange || s.Partition.Tp == model.PartitionTypeHash ?
@crazycs520 Hash partition doesn't have "partition by columns ... " |
d63e1d3
to
46b9e00
Compare
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.
LGTM
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.
LGTM
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.
LGTM
What problem does this PR solve?
Mysql:
TiDB:
success
What is changed and how it works?
The return type of the expr should be int, and only part of functions are allowed
Ref:
https://dev.mysql.com/doc/refman/8.0/en/partitioning-limitations-functions.html
https://dev.mysql.com/doc/refman/8.0/en/partitioning-hash.html
Check List
Tests