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

minor code refinement: if_exists name change, wildcard field for logical plan, etc. #1951

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

xudong963
Copy link
Member

Which issue does this PR close?

Code found during the code review process that could be refined.

@@ -191,7 +191,7 @@ pub struct DropTable {
/// The table name
pub name: String,
/// If the table exists
pub if_exist: bool,
pub if_exists: bool,
Copy link
Member Author

Choose a reason for hiding this comment

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

Consistent with Statement::Drop

@@ -194,7 +182,7 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
{
Ok(LogicalPlan::DropTable(DropTable {
name: names.get(0).unwrap().to_string(),
if_exist: *if_exists,
if_exists: *if_exists,
Copy link
Member Author

Choose a reason for hiding this comment

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

@github-actions github-actions bot added datafusion Changes in the datafusion crate sql SQL Planner labels Mar 8, 2022
Copy link
Contributor

@liukun4515 liukun4515 left a comment

Choose a reason for hiding this comment

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

LGTM

@jimexist jimexist changed the title minor: refine code minor code refinement: if_exists name change, wildcard field for logical plan, etc. Mar 8, 2022
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.

thank you

@houqp houqp merged commit 06bda75 into apache:master Mar 9, 2022
@xudong963 xudong963 deleted the refine_1 branch March 9, 2022 07:07
alamb added a commit that referenced this pull request Mar 10, 2022
* emit some clone

* optimize code with clippy

* make code clearer

* resolve conflicts with #1951

Co-authored-by: xudong.w <wxd963996380@gmail.com>

Co-authored-by: xudong.w <wxd963996380@gmail.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
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.

4 participants