From 6812e52b62d2bb0370976a45b22bce7d7a4fe9df Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Mon, 9 Dec 2024 19:37:47 +1100 Subject: [PATCH] c --- crates/polars-plan/src/plans/optimizer/predicate_pushdown/mod.rs | 1 + crates/polars-plan/src/plans/optimizer/slice_pushdown_lp.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/crates/polars-plan/src/plans/optimizer/predicate_pushdown/mod.rs b/crates/polars-plan/src/plans/optimizer/predicate_pushdown/mod.rs index f987a9d54448..01ea7004101c 100644 --- a/crates/polars-plan/src/plans/optimizer/predicate_pushdown/mod.rs +++ b/crates/polars-plan/src/plans/optimizer/predicate_pushdown/mod.rs @@ -45,6 +45,7 @@ mod inner { } } + /// Returns shared scratch space after clearing. pub(super) fn empty_nodes_scratch_mut(&mut self) -> &mut UnitVec { self.nodes_scratch.clear(); &mut self.nodes_scratch diff --git a/crates/polars-plan/src/plans/optimizer/slice_pushdown_lp.rs b/crates/polars-plan/src/plans/optimizer/slice_pushdown_lp.rs index 7d33968601d4..7bbcf04cfe71 100644 --- a/crates/polars-plan/src/plans/optimizer/slice_pushdown_lp.rs +++ b/crates/polars-plan/src/plans/optimizer/slice_pushdown_lp.rs @@ -24,6 +24,7 @@ mod inner { } } + /// Returns shared scratch space after clearing. pub fn empty_nodes_scratch_mut(&mut self) -> &mut UnitVec { self.scratch.clear(); &mut self.scratch