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

feat: support CREATE OR REPLACE w/ config guard but w/o restrictions #5766

Merged
merged 3 commits into from
Jul 6, 2020

Conversation

agavra
Copy link
Contributor

@agavra agavra commented Jul 6, 2020

Description

This PR does the work of allowing us to issue CREATE OR REPLACE <source> and it will replace the source with the new query. It does not do any type of validation, which may be extraordinarily dangerous, so it is disabled by default. Future PRs will introduce guardrails to ensure that the compatibility is validated.

The funcitonal change is only a few lines in EngineContext and MetaStoreImpl, most the hard work was done in the preivous pr (#5710) to reuse queryIds.

Testing done

The main test is ReplaceIntTest, the rest are just updated legacy tests.

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

@agavra agavra marked this pull request as ready for review July 6, 2020 18:20
@agavra agavra requested a review from a team as a code owner July 6, 2020 18:20
Copy link
Member

@vpapavas vpapavas left a comment

Choose a reason for hiding this comment

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

LGTM

@agavra agavra merged commit e7ff81a into confluentinc:master Jul 6, 2020
@agavra agavra deleted the cor_basic branch July 6, 2020 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