mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-28 10:50:39 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user