Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Feb 18, 2025
1 parent 658cd67 commit 8104b42
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/polars-plan/src/plans/optimizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,10 @@ More information on the new streaming engine: https://github.com/pola-rs/polars/

lp_top = opt.optimize_loop(&mut rules, expr_arena, lp_arena, lp_top)?;

if get_members_opt!().is_some_and(|members| {
members.has_joins_or_unions && members.has_cache && _cse_plan_changed
}) {
if _cse_plan_changed
&& get_members_opt!()
.is_some_and(|members| members.has_joins_or_unions && members.has_cache)
{
// We only want to run this on cse inserted caches
cache_states::set_cache_states(
lp_top,
Expand Down

0 comments on commit 8104b42

Please sign in to comment.