Skip to content

Commit bef3f82

Browse files
committed
execution debugging
Signed-off-by: Alex Qyoun-ae <4062971+MazterQyou@users.noreply.github.com>
1 parent ce15c76 commit bef3f82

File tree

4 files changed

+20
-17
lines changed

4 files changed

+20
-17
lines changed

packages/cubejs-backend-native/Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/cubesql/Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/cubesql/cubesql/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ homepage = "https://cube.dev"
1010

1111
[dependencies]
1212
arc-swap = "1"
13-
datafusion = { git = 'https://github.com/cube-js/arrow-datafusion.git', rev = "19a0adaa43745a3facfe67be406dcb488fad7a9c", default-features = false, features = [
13+
datafusion = { git = 'https://github.com/cube-js/arrow-datafusion.git', rev = "0c1ab37ce54e4b496ac477a79c986a18ce278923", default-features = false, features = [
1414
"regex_expressions",
1515
"unicode_expressions",
1616
] }

rust/cubesql/cubesql/src/compile/query_engine.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ pub trait QueryEngine {
141141
})?;
142142

143143
let mut optimized_plan = plan;
144+
println!("INITIAL PLAN:\n{:?}\n", optimized_plan);
144145
// ctx.optimize(&plan).map_err(|err| {
145146
// CompilationError::Internal(format!("Planning optimization error: {}", err))
146147
// })?;
@@ -160,6 +161,7 @@ pub trait QueryEngine {
160161
.optimize(&optimized_plan, &optimizer_config)
161162
.unwrap_or(optimized_plan);
162163
}
164+
println!("OPTIMIZED PLAN:\n{:?}\n", optimized_plan);
163165

164166
if let Some(qtrace) = qtrace {
165167
qtrace.set_optimized_plan(&optimized_plan);
@@ -291,6 +293,7 @@ pub trait QueryEngine {
291293
}
292294

293295
let rewrite_plan = result?;
296+
println!("REWRITTEN PLAN:\n{:?}\n", rewrite_plan);
294297

295298
if let Some(span_id) = span_id.as_ref() {
296299
if let Some(auth_context) = state.auth_context() {

0 commit comments

Comments
 (0)