Skip to content

Commit 324ecfa

Browse files
authored
chore(cubesql): Make create_logical_plan async (#10059)
Signed-off-by: Alex Qyoun-ae <[email protected]>
1 parent e0c9807 commit 324ecfa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rust/cubesql/cubesql/src/compile/query_engine.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub trait QueryEngine {
7676
state: Arc<SessionState>,
7777
) -> Result<DFSessionContext, CompilationError>;
7878

79-
fn create_logical_plan(
79+
async fn create_logical_plan(
8080
&self,
8181
cube_ctx: &CubeContext,
8282
stmt: &Self::AstStatementType,
@@ -126,6 +126,7 @@ pub trait QueryEngine {
126126

127127
let (plan, metadata) = self
128128
.create_logical_plan(&cube_ctx, &stmt, span_id.clone(), Some(query_planning_id))
129+
.await
129130
.map_err(|err| {
130131
let message = format!("Initial planning error: {}", err,);
131132
let meta = Some(HashMap::from([
@@ -567,7 +568,7 @@ impl QueryEngine for SqlQueryEngine {
567568
Ok(ctx)
568569
}
569570

570-
fn create_logical_plan(
571+
async fn create_logical_plan(
571572
&self,
572573
cube_ctx: &CubeContext,
573574
stmt: &Self::AstStatementType,

0 commit comments

Comments
 (0)