You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by al...@apache.org on 2022/04/06 18:22:39 UTC
[arrow-datafusion] branch master updated: [CLI] Add show tables for datafusion-cli (#2137)
This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/master by this push:
new f0200b0a9 [CLI] Add show tables for datafusion-cli (#2137)
f0200b0a9 is described below
commit f0200b0a963bb817a6dad96a0b1fe0d06576004b
Author: gaojun2048 <ga...@gmail.com>
AuthorDate: Thu Apr 7 02:22:34 2022 +0800
[CLI] Add show tables for datafusion-cli (#2137)
* add show tables for datafusion cli
* fix error
* Update datafusion-cli/src/main.rs
Co-authored-by: Andy Grove <an...@gmail.com>
* change datafusion-cli to always have access to the information schema
Co-authored-by: Andy Grove <an...@gmail.com>
---
datafusion-cli/src/context.rs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/datafusion-cli/src/context.rs b/datafusion-cli/src/context.rs
index 6b76baffa..c96b0e766 100644
--- a/datafusion-cli/src/context.rs
+++ b/datafusion-cli/src/context.rs
@@ -59,7 +59,10 @@ impl BallistaContext {
pub async fn try_new(host: &str, port: u16) -> Result<Self> {
use ballista::context::BallistaContext;
use ballista::prelude::BallistaConfig;
- let config: BallistaConfig = BallistaConfig::new()
+ let builder =
+ BallistaConfig::builder().set("ballista.with_information_schema", "true");
+ let config = builder
+ .build()
.map_err(|e| DataFusionError::Execution(format!("{:?}", e)))?;
let remote_ctx = BallistaContext::remote(host, port, &config)
.await