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: move toTable kstreams calls to plan builder #3334

Merged

Conversation

rodesai
Copy link
Contributor

@rodesai rodesai commented Sep 12, 2019

Description

This patch moves converting from a kstream to a ktable to the plan
builder, and cleans up that code (and tests) from SchemaKStream and
DataSourceNode

Testing done

added unit tests for the new step builder

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

@rodesai rodesai requested a review from a team as a code owner September 12, 2019 07:08
Copy link
Contributor

@big-andy-coates big-andy-coates left a comment

Choose a reason for hiding this comment

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

Thanks @rodesai, LGTM

@Override
public List<ExecutionStep<?>> getSources() {
return ImmutableList.of(source);
}

public ExecutionStep<S> getSource() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this necessary? Seems like API bloat, when the caller could just call getSources().get(0).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've left this in so that I can get the source with type parameters.

This patch moves converting from a kstream to a ktable to the plan
builder, and cleans up that code (and tests) from SchemaKStream and
DataSourceNode
@rodesai rodesai force-pushed the move-stream-to-table-to-execution branch from 25f1a29 to cbca611 Compare September 13, 2019 21:09
@rodesai rodesai merged commit 06aa252 into confluentinc:master Sep 14, 2019
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