Skip to content

Commit

Permalink
fix: avoid reference after move when building w/o datafusion
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyler committed Sep 27, 2024
1 parent 528192e commit 6a770f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/core/src/operations/optimize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,8 @@ impl MergePlan {
})
.boxed(),
OptimizeOperations::ZOrder(zorder_columns, bins) => {
debug!("Starting zorder with the columns: {zorder_columns:?} {bins:?}");

#[cfg(not(feature = "datafusion"))]
let exec_context = Arc::new(zorder::ZOrderExecContext::new(
zorder_columns,
Expand All @@ -729,7 +731,6 @@ impl MergePlan {
bins.len() <= num_cpus::get(),
));

debug!("Starting zorder with the columns: {zorder_columns:?} {bins:?}");
#[cfg(feature = "datafusion")]
let exec_context = Arc::new(zorder::ZOrderExecContext::new(
zorder_columns,
Expand Down

0 comments on commit 6a770f0

Please sign in to comment.