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

Extract CreateMemoryTable, DropTable, CreateExternalTable in LogicalPlan as independent struct #1311

Merged
merged 4 commits into from
Nov 18, 2021

Conversation

liukun4515
Copy link
Contributor

Which issue does this PR close?

Closes #1306

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the datafusion Changes in the datafusion crate label Nov 15, 2021
@github-actions github-actions bot added ballista sql SQL Planner labels Nov 17, 2021
@liukun4515 liukun4515 marked this pull request as ready for review November 17, 2021 06:58
@liukun4515 liukun4515 changed the title [WIP]Extract CreateMemoryTable, DropTable, CreateExternalTable in LogicalPlan as independent struct Extract CreateMemoryTable, DropTable, CreateExternalTable in LogicalPlan as independent struct Nov 17, 2021
@liukun4515
Copy link
Contributor Author

@xudong963 PTAL

@xudong963
Copy link
Member

Thanks @liukun4515, I'll take a look tomorrow!

@@ -27,7 +27,7 @@ mod display;
mod expr;
mod extension;
mod operators;
pub mod plan;
mod plan;
Copy link
Member

@jimexist jimexist Nov 17, 2021

Choose a reason for hiding this comment

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

I don't think this is backward compatible

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with @jimexist 's implicit suggestion that we should leave the code as pub mod plan;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jimexist
@alamb
This comment has been addressed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jimexist @alamb
I have doubts about this backward compatible.
Before this commit #1290, this is mod plan, and this commit is not in the release 6.0.0 datafusion.
The reason i did this is to keep code style with original usage:

pub use plan::{
    JoinConstraint, JoinType, LogicalPlan, Partitioning, PlanType, PlanVisitor,
};

and make some struct public we wanted.

@alamb
Copy link
Contributor

alamb commented Nov 17, 2021

This PR now also has several logical conflicts with master :(

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks @liukun4515 -- can you please address @jimexist 's comment and resolve the merge conflicts and I think this one will be ready to merge

@@ -27,7 +27,7 @@ mod display;
mod expr;
mod extension;
mod operators;
pub mod plan;
mod plan;
Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with @jimexist 's implicit suggestion that we should leave the code as pub mod plan;

@xudong963
Copy link
Member

LGTM!

@liukun4515 liukun4515 marked this pull request as draft November 18, 2021 03:06
Copy link
Member

@jimexist jimexist 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

@liukun4515 liukun4515 marked this pull request as ready for review November 18, 2021 06:02
@liukun4515
Copy link
Contributor Author

@alamb please merge this pr

@alamb alamb merged commit b8ff94c into apache:master Nov 18, 2021
@alamb
Copy link
Contributor

alamb commented Nov 18, 2021

Thanks @liukun4515 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion Changes in the datafusion crate sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extract CreateMemoryTable, DropTable, CreateExternalTable in LogicalPlan as independent struct
4 participants