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

Drop requirement that CREATE TABLE statements have a KEY set in WITH clause #2746

Merged

Conversation

big-andy-coates
Copy link
Contributor

@big-andy-coates big-andy-coates commented Apr 29, 2019

Description

Drop requirement that CREATE TABLE statements have a KEY set in WITH clause

Fixes #2745

This also fixes a hole in the current KSQL where any table without a key field set can be used in a join by any column, i.e. it should throw an error, but does not.

Still todo:

Testing done

Updated key-fields.json test accordingly and 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 #")

@big-andy-coates big-andy-coates requested review from JimGalasyn and a team as code owners April 29, 2019 14:05
Copy link
Member

@spena spena left a comment

Choose a reason for hiding this comment

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

LGTM

docs/changelog.rst Outdated Show resolved Hide resolved
@spena spena requested a review from a team April 29, 2019 15:38
Copy link
Contributor

@agavra agavra left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @big-andy-coates

Copy link
Member

@JimGalasyn JimGalasyn left a comment

Choose a reason for hiding this comment

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

LGTM!

big-andy-coates and others added 11 commits April 30, 2019 15:49
Conflicting files
ksql-engine/src/main/java/io/confluent/ksql/ddl/commands/AbstractCreateStreamCommand.java
ksql-engine/src/main/java/io/confluent/ksql/ddl/commands/CreateTableCommand.java
ksql-engine/src/main/java/io/confluent/ksql/planner/plan/JoinNode.java
ksql-engine/src/test/java/io/confluent/ksql/ddl/commands/AbstractCreateStreamCommandTest.java
ksql-engine/src/test/java/io/confluent/ksql/ddl/commands/CommandFactoriesTest.java
Conflicting files
ksql-engine/src/test/java/io/confluent/ksql/planner/plan/JoinNodeTest.java
@big-andy-coates big-andy-coates merged commit f34f4f3 into confluentinc:master May 1, 2019
@big-andy-coates big-andy-coates deleted the drop_key_requirement branch May 1, 2019 11:34
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.

Drop requirement that CREATE TABLE must have KEY set in WITH clause.
4 participants