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: execute source table query plans #8061

Merged
merged 2 commits into from
Aug 28, 2021
Merged

Conversation

spena
Copy link
Member

@spena spena commented Aug 26, 2021

Description

As part of the source table materialization, this PR executes the new plan created for source tables.

Testing done

Describe the testing strategy. Unit and integration tests are expected for any behavior changes.

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 requested review from mjsax, jzaralim, vcrfxia and a team August 26, 2021 18:41
@spena spena force-pushed the source_table_query_execution branch 2 times, most recently from 94fd309 to cba4762 Compare August 26, 2021 22:11
@spena spena force-pushed the source_table_query_execution branch from cba4762 to 09487c6 Compare August 27, 2021 13:03
@JsonProperty(value = "physicalPlan", required = true) final ExecutionStep<?> physicalPlan,
@JsonProperty(value = "queryId", required = true) final QueryId queryId
) {
this.sources = ImmutableSortedSet.copyOf(
Comparator.comparing(Name::text),
Objects.requireNonNull(sources, "sources")
);
this.sink = Objects.requireNonNull(sink, "sink");
// Sink can be null when a query plan forms part of a create source table command.
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't that be Optional.empty() rather than null?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll remove that comment. It added when I was testing the QueryPlan with nulls, but I found out later the Optional parameter works.

@spena spena force-pushed the source_table_query_execution branch 2 times, most recently from 2373945 to dde78f6 Compare August 27, 2021 19:58
@spena spena force-pushed the source_table_query_execution branch 2 times, most recently from 2c4299d to 9915a53 Compare August 28, 2021 00:51
@spena spena merged commit e2c3211 into master Aug 28, 2021
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.

None yet

3 participants