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

Bug Report: PARTITION BY KEY() is not parsed correctly. #10959

Closed
dbussink opened this issue Aug 8, 2022 · 1 comment · Fixed by #10958
Closed

Bug Report: PARTITION BY KEY() is not parsed correctly. #10959

dbussink opened this issue Aug 8, 2022 · 1 comment · Fixed by #10958

Comments

@dbussink
Copy link
Contributor

dbussink commented Aug 8, 2022

Overview of the Issue

The PARTITION BY KEY syntax allows for passing in an empty column list which signifies that the primary key is used for partitioning.

See also https://dev.mysql.com/doc/refman/8.0/en/partitioning-key.html, specifically:

KEY takes only a list of zero or more column names. Any columns used as the partitioning key must
comprise part or all of the table's primary key, if the table has one. Where no column name is
specified as the partitioning key, the table's primary key is used, if there is one.

Reproduction Steps

create table t (id int, primary key(id)) partition by key () partitions 2

Binary Version

All version

Operating System and Environment details

Not applicable

Log Fragments

Not applicable
@dbussink dbussink added Type: Bug Needs Triage This issue needs to be correctly labelled and triaged labels Aug 8, 2022
@dbussink
Copy link
Contributor Author

dbussink commented Aug 8, 2022

#10958 fixes this

@dbussink dbussink removed the Needs Triage This issue needs to be correctly labelled and triaged label Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant