refactor: remove the SQL execution interfaces in Datanode (#1135)

* refactor: remove the SQL execution interfaces in Datanode
This commit is contained in:
LFC
2023-03-13 18:45:30 +08:00
committed by GitHub
parent c7f114c8fa
commit 604c20a83d
51 changed files with 595 additions and 1081 deletions

View File

@@ -279,7 +279,8 @@ impl Script for PyScript {
);
let plan = self
.query_engine
.statement_to_plan(stmt, Arc::new(QueryContext::new()))
.planner()
.plan(stmt, QueryContext::arc())
.await?;
let res = self.query_engine.execute(&plan).await?;
let copr = self.copr.clone();

View File

@@ -367,7 +367,8 @@ impl PyQueryEngine {
let handle = rt.handle().clone();
let res = handle.block_on(async {
let plan = engine
.statement_to_plan(stmt, Default::default())
.planner()
.plan(stmt, Default::default())
.await
.map_err(|e| e.to_string())?;
let res = engine

View File

@@ -160,7 +160,8 @@ impl ScriptsTable {
let plan = self
.query_engine
.statement_to_plan(stmt, Arc::new(QueryContext::new()))
.planner()
.plan(stmt, QueryContext::arc())
.await
.unwrap();