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

refactor: re-use CreateSourceFactory to create streams/tables for CREATE_AS statements #6594

Merged
merged 2 commits into from
Nov 13, 2020

Conversation

spena
Copy link
Member

@spena spena commented Nov 10, 2020

Description

Before this PR, the CreateStreamCommand creation code was redundant in the EngineExecutor.maybeCreateSinkDdl and the CreateSourceFactory. This PR moves the code from the EngineExecutor to the CreateSourceFactory to re-use part of the code there.

Right now, the PR doesn't re-use code. But it will be needed by #6073 so it checks if the stream or table command exists before creating it.

Testing done

Added unit 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 #")

@spena spena added the refactor label Nov 10, 2020
@spena spena added this to the 0.15.0 milestone Nov 10, 2020
@spena spena requested a review from a team November 10, 2020 16:52
@spena spena merged commit 1e46ff8 into confluentinc:master Nov 13, 2020
@spena spena deleted the refactor_execute_ddl branch November 13, 2020 01:32
ableegoldman added a commit to ableegoldman/ksql that referenced this pull request Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants