-
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
Support default partition for list (columns) partition table #20679
Comments
@zz-jason PTAL |
I noticed that there is a worklog in MySQL which discusses to support the The Syntax is like Oracle: CREATE TABLE t (a INT, b TEXT)
PARTITION BY LIST (a)
(PARTITION p0 VALUES IN (1,5,6,7),
PARTITION p1 VALUES IN (3,4,9),
PARTITION pDefault VALUES IN (DEFAULT)); Please note:
|
@crazycs520 I think it's better to keep the MySQL syntax since we are claimed to be MySQL compatible. BTW, it's better to discuss only one feature request at one issue. |
This feature request LGTM |
/component tablepartition |
Feature Request
Is your feature request related to a problem? Please describe:
N/A
Describe the feature you'd like:
The default partition of list partition table is from ORACLE, MYSQL doesn't support this, but it is a very useful feature.
Here is an example, I want to create a list partition table, the list partition depends on the year.
But I execute the following SQL will fail:
I know the upper behavior is expected, So I want to add a default partition to store the data that doesn't match the other partitions. Such as:
Then the following SQL will be successfully inserted into the default partition.
Another feature-request is, should we support the ORACLE list partition syntax? Some customers are using ORACLE syntax to test the list partition.
Describe alternatives you've considered:
The upper features aren't hard to implement, I already implemented this here: bb7133#33
Teachability, Documentation, Adoption, Migration Strategy:
N/A
The text was updated successfully, but these errors were encountered: