Skip to content

Comments

adapter: emit existence notice in CREATE CONNECTION IF NOT EXISTS#30902

Merged
benesch merged 1 commit intoMaterializeInc:mainfrom
benesch:create-connection-notice
Dec 25, 2024
Merged

adapter: emit existence notice in CREATE CONNECTION IF NOT EXISTS#30902
benesch merged 1 commit intoMaterializeInc:mainfrom
benesch:create-connection-notice

Conversation

@benesch
Copy link
Contributor

@benesch benesch commented Dec 25, 2024

If the named connection already exists when running a CREATE CONNECTION IF NOT EXISTS command, emit a notice indicating the existing connection.

This brings CREATE CONNECTION IF NOT EXISTS into alignment with the behavior of all other CREATE ... IF NOT EXISTS commands, which all emit notices. Somehow connections were overlooked.

Motivation

  • This PR fixes a previously unreported bug.

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered. (trigger-ci for additional test/nightly runs)
  • 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).
  • If this PR includes major user-facing behavior changes, I have pinged the relevant PM to schedule a changelog post.

If the named connection already exists when running a CREATE CONNECTION
IF NOT EXISTS command, emit a notice indicating the existing connection.

This brings CREATE CONNECTION IF NOT EXISTS into alignment with the
behavior of all other CREATE ... IF NOT EXISTS commands, which all emit
notices. Somehow connections were overlooked.
@benesch benesch requested review from ParkMyCar and jkosh44 December 25, 2024 16:41
@benesch benesch requested a review from a team as a code owner December 25, 2024 16:41
Copy link
Contributor

@jkosh44 jkosh44 left a comment

Choose a reason for hiding this comment

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

LGTM

@benesch benesch merged commit a611da7 into MaterializeInc:main Dec 25, 2024
2 checks passed
@benesch benesch deleted the create-connection-notice branch December 25, 2024 22:50
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.

2 participants