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-parser: add parens after SET/RESET in ALTER CONNECTION #23432

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

benesch
Copy link
Contributor

@benesch benesch commented Nov 24, 2023

For consistency with ALTER ... {SET | RESET} in other commands.

Motivation

  • This PR refactors existing code.

Tips for reviewer

@sploiselle apologies if I missed a design discussion about this! I have a vague recollection of talking about this way back when but the design document for ALTER CONNECTION seems to have disappeared?

Marking as a release blocker for the next release (v0.79) so we don't accidentally ship the syntax without the parens.

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered.
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • This PR includes the following user-facing behavior changes:
    • n/a as long as this makes v0.79

@benesch benesch requested a review from sploiselle November 24, 2023 22:38
@benesch benesch requested a review from a team as a code owner November 24, 2023 22:38
@benesch benesch requested review from a team and jkosh44 November 24, 2023 22:38
For consistency with `ALTER ... {SET | RESET}` in other commands.
@benesch benesch force-pushed the alter-connection-parens branch from 93b0a9d to 55dd714 Compare November 26, 2023 20:34
@sploiselle
Copy link
Contributor

@benesch I accidentally deleted the design document for ALTER CONNECTION and didn't realize it until it was too late. I don't recall this being discussed, but I might be wrong. At any rate, appreciate the catch here.

@sploiselle sploiselle merged commit 47011e0 into MaterializeInc:main Nov 27, 2023
@benesch
Copy link
Contributor Author

benesch commented Nov 27, 2023

@benesch I accidentally deleted the design document for ALTER CONNECTION and didn't realize it until it was too late.

Is it worth dredging it out of the Git history and merging it? 4e7364e is the commit I was able to find. If the final implementation deviated substantially from what was proposed there then it's probably not worth it!

I don't recall this being discussed, but I might be wrong. At any rate, appreciate the catch here.

We very lightly discussed it here, but GitHub hid those comments away when the design doc went missing!

At any rate, appreciate the catch here.

Thanks for the review and merge!

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.

3 participants