Skip to content

Commit

Permalink
feat: Activate all optimizations in sinks (#21462)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Feb 25, 2025
1 parent e75542d commit 45ec22a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions py-polars/polars/lazyframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2919,7 +2919,10 @@ def _set_sink_optimizations(
simplify_expression: bool = True,
slice_pushdown: bool = True,
collapse_joins: bool = True,
cluster_with_columns: bool = True,
no_optimization: bool = False,
comm_subplan_elim: bool = False,
comm_subexpr_elim: bool = False,
_check_order: bool = True,
) -> PyLazyFrame:
if no_optimization:
Expand All @@ -2935,9 +2938,9 @@ def _set_sink_optimizations(
projection_pushdown=projection_pushdown,
simplify_expression=simplify_expression,
slice_pushdown=slice_pushdown,
comm_subplan_elim=False,
comm_subexpr_elim=False,
cluster_with_columns=False,
comm_subplan_elim=comm_subplan_elim,
comm_subexpr_elim=comm_subexpr_elim,
cluster_with_columns=cluster_with_columns,
collapse_joins=collapse_joins,
streaming=True,
_eager=False,
Expand Down

0 comments on commit 45ec22a

Please sign in to comment.