-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add support show tables and show columns for ballista #1593
Conversation
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.
Looks good to me -- thank you @gaojun2048
@@ -256,6 +288,14 @@ impl BallistaContext { | |||
) | |||
}; | |||
|
|||
let is_show = self.is_show_statement(sql).await?; |
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.
I wonder if there is some reason not to always use the with_information_schema
?
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.
Is it ok set information_schema: true,
by default ? if not may i ask which situation need block this for user 😊
https://github.com/apache/arrow-datafusion/blob/82e80036d9dbcf1bacac8e94eb10d5c60a8016a7/datafusion/src/execution/context.rs#L930
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.
Datafusion supports show tables only when with_information_schema=true. Currently, users cannot specify the with_information_schema parameter of datafusion when creating a ballista context. I can add a with_information_schema parameter in BallistaConfig, the default value is false, when users need to use show tables in ballista, users can turn on this function through with_information_schema(true).
@@ -256,6 +288,14 @@ impl BallistaContext { | |||
) | |||
}; | |||
|
|||
let is_show = self.is_show_statement(sql).await?; |
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.
Is it ok set information_schema: true,
by default ? if not may i ask which situation need block this for user 😊
https://github.com/apache/arrow-datafusion/blob/82e80036d9dbcf1bacac8e94eb10d5c60a8016a7/datafusion/src/execution/context.rs#L930
Which issue does this PR close?
Closes #1592.