Skip to content

Commit 3ddfa46

Browse files
author
Wang
committed
fix client BallistaContext
1 parent b7bdea2 commit 3ddfa46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datafusion-cli/src/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub enum Context {
3333
impl Context {
3434
/// create a new remote context with given host and port
3535
pub async fn new_remote(host: &str, port: u16) -> Result<Context> {
36-
Ok(Context::Remote(BallistaContext::try_new(host, port)?))
36+
Ok(Context::Remote(BallistaContext::try_new(host, port).await?))
3737
}
3838

3939
/// create a local context using the given config
@@ -61,7 +61,7 @@ impl BallistaContext {
6161
use ballista::prelude::BallistaConfig;
6262
let config: BallistaConfig = BallistaConfig::new()
6363
.map_err(|e| DataFusionError::Execution(format!("{:?}", e)))?;
64-
BallistaContext::remote(host, port, &config).await
64+
Ok(Self(BallistaContext::remote(host, port, &config).await?))
6565
}
6666

6767
pub async fn sql(&mut self, sql: &str) -> Result<Arc<dyn DataFrame>> {

0 commit comments

Comments
 (0)