-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
@@ -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, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After https://github.com/apache/arrow-datafusion/pull/1945/files merged, here can directly if_exists
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
if_exists
name change, wildcard field for logical plan, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you
* 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>
Which issue does this PR close?
Code found during the code review process that could be refined.