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

Add support show tables and show columns for ballista #1593

Merged
merged 11 commits into from
Jan 18, 2022

Conversation

EricJoy2048
Copy link
Member

@EricJoy2048 EricJoy2048 commented Jan 17, 2022

Which issue does this PR close?

Closes #1592.

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.

Looks good to me -- thank you @gaojun2048

@@ -256,6 +288,14 @@ impl BallistaContext {
)
};

let is_show = self.is_show_statement(sql).await?;
Copy link
Contributor

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?

Copy link
Member

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

Copy link
Member Author

@EricJoy2048 EricJoy2048 Jan 18, 2022

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?;
Copy link
Member

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

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.

[ballista] Add support show tables and show columns for ballista
3 participants