-
Notifications
You must be signed in to change notification settings - Fork 4k
sql: support CREATE TABLE ... PARTITION BY ... AS ... #103074
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
base: master
Are you sure you want to change the base?
sql: support CREATE TABLE ... PARTITION BY ... AS ... #103074
Conversation
Thank you for contributing to CockroachDB. Please ensure you have followed the guidelines for creating a PR. My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
I would like to point out that the syntax adopted in this PR is |
While working on this PR, I noticed a strange interaction with the testing framework which executes the
Should I open an issue or is this intended? |
1db2d92
to
832e9b8
Compare
Thank you for updating your pull request. My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
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.
thanks for your contribution! can you also add a test case for this in pkg/sql/logictest/testdata/logic_test/create_table
?
a7cd99d
to
55d862e
Compare
@rafiss I have just added test cases in |
55d862e
to
6fbc0e2
Compare
Tables can have partitioning applied to them, however this functionality was not available through the CREATE TABLE AS syntax. This commit updates the grammar to support PARTITION BY to the CREATE TABLE AS syntax, and the related functionality. Fixes: cockroachdb#20178 Release note (sql change): add support for PARTITION BY on CREATE TABLE AS Co-authored-by: Jonathan Camilleri <jon.d.cam@gmail.com>
6fbc0e2
to
f2d0c1b
Compare
Tables can have partitioning applied to them, however this functionality was not available through the CREATE TABLE AS syntax. This commit updates the grammar to support PARTITION BY to the CREATE TABLE AS syntax, and the related
functionality.
Fixes: #20178
Release note (sql change): add support for PARTITION BY on CREATE TABLE AS