refactor: make use of the "pre_execute" in sql execution interceptor (#4875)

* feat: dynamic definition of plugin options

* rebase

* revert

* fix ci
This commit is contained in:
LFC
2024-10-30 17:16:46 +08:00
committed by GitHub
parent 9712295177
commit fd8eba36a8
28 changed files with 141 additions and 102 deletions

View File

@@ -315,7 +315,7 @@ impl Script for PyScript {
let plan = self
.query_engine
.planner()
.plan(stmt, ctx.query_ctx.clone())
.plan(&stmt, ctx.query_ctx.clone())
.await
.context(DatabaseQuerySnafu)?;
let res = self

View File

@@ -414,7 +414,7 @@ impl PyQueryEngine {
let ctx = Arc::new(QueryContextBuilder::default().build());
let plan = engine
.planner()
.plan(stmt, ctx.clone())
.plan(&stmt, ctx.clone())
.await
.map_err(|e| e.to_string())?;
let res = engine