Skip to content

Commit

Permalink
wip(cubesql): Top-down extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
MazterQyou committed Aug 28, 2024
1 parent 11b6dec commit a86eee7
Show file tree
Hide file tree
Showing 4 changed files with 455 additions and 195 deletions.
8 changes: 7 additions & 1 deletion rust/cubesql/cubesql/src/compile/query_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,13 @@ pub trait QueryEngine {
let mut rewriter = Rewriter::new(finalized_graph, cube_ctx.clone());

let result = rewriter
.find_best_plan(root, state.auth_context().unwrap(), qtrace, span_id.clone())
.find_best_plan(
root,
state.auth_context().unwrap(),
qtrace,
span_id.clone(),
self.config_ref().top_down_extractor(),
)
.await
.map_err(|e| match e.cause {
CubeErrorCauseType::Internal(_) => CompilationError::Internal(
Expand Down
Loading

0 comments on commit a86eee7

Please sign in to comment.