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

sql: fix the pretty-printing of the PARTITION BY clauses #95272

Merged
merged 1 commit into from
Jan 16, 2023

Conversation

knz
Copy link
Contributor

@knz knz commented Jan 15, 2023

Fixes #95238.

The AST was incorrectly using tree.UnrestrictedName, whereas the PARTITION BY clauses could use special identifiers.

Release note: None

@knz knz requested review from otan and a team January 15, 2023 20:53
@knz knz requested a review from a team as a code owner January 15, 2023 20:53
@cockroach-teamcity
Copy link
Member

This change is Reviewable

---

# Check that the result of pretty-printing quotes the identifiers
# in the parittion list and the partition names properly.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: typo in partition

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks.

The AST was incorrectly using tree.UnrestrictedName, whereas the
PARTITION BY clauses could use special identifiers.

Release note: None
@knz knz force-pushed the 20230115-partition-syntax branch from 49eaea0 to 67b0933 Compare January 16, 2023 10:46
@knz
Copy link
Contributor Author

knz commented Jan 16, 2023

TFYR!

bors r=otan

@craig
Copy link
Contributor

craig bot commented Jan 16, 2023

Build succeeded:

@craig craig bot merged commit d20be50 into cockroachdb:master Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sql: pretty-printing of partition clauses is incorrect
3 participants