Skip to content

Commit

Permalink
refactor(rust): Temporarily disable common subplan elim for new-strea…
Browse files Browse the repository at this point in the history
…ming
  • Loading branch information
orlp committed Dec 19, 2024
1 parent db1684d commit d67e319
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/polars-lazy/src/frame/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,11 +601,15 @@ impl LazyFrame {
opt_state &= !OptFlags::COMM_SUBPLAN_ELIM;
}

// The new streaming engine can't deal with the way the common
// subexpression elimination adds length-incorrect with_columns.
#[cfg(feature = "cse")]
if new_streaming {
// The new streaming engine can't deal with the way the common
// subexpression elimination adds length-incorrect with_columns.
opt_state &= !OptFlags::COMM_SUBEXPR_ELIM;

// The new streaming engine can't yet deal with the cache nodes
// introduced by common subplan elimination.
opt_state &= !OptFlags::COMM_SUBPLAN_ELIM;
}

let lp_top = optimize(
Expand Down

0 comments on commit d67e319

Please sign in to comment.