refactor: remove SqlStatementExecutor (#2464)

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2023-09-22 09:57:48 +08:00
committed by GitHub
parent 6306aeabf0
commit 4c7ad44605
3 changed files with 1 additions and 45 deletions

View File

@@ -28,7 +28,6 @@ use common_query::prelude::ScalarUdf;
use common_query::Output;
use datatypes::schema::Schema;
use session::context::QueryContextRef;
use sql::statements::statement::Statement;
use table::TableRef;
use crate::dataframe::DataFrame;
@@ -40,8 +39,6 @@ pub use crate::query_engine::context::QueryEngineContext;
pub use crate::query_engine::state::QueryEngineState;
use crate::region_query::RegionQueryHandlerRef;
pub type SqlStatementExecutorRef = Arc<dyn SqlStatementExecutor>;
/// Describe statement result
#[derive(Debug)]
pub struct DescribeResult {
@@ -51,11 +48,6 @@ pub struct DescribeResult {
pub logical_plan: LogicalPlan,
}
#[async_trait]
pub trait SqlStatementExecutor: Send + Sync {
async fn execute_sql(&self, stmt: Statement, query_ctx: QueryContextRef) -> Result<Output>;
}
#[async_trait]
pub trait QueryEngine: Send + Sync {
/// Returns the query engine as Any