From cce21b8ec51c2219ee82be93820fbbb0181219b9 Mon Sep 17 00:00:00 2001 From: eitsupi Date: Sat, 21 Oct 2023 11:03:13 +0000 Subject: [PATCH] feat(rust): LazyFrame._with_fast_projection() --- crates/polars-lazy/src/frame/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/polars-lazy/src/frame/mod.rs b/crates/polars-lazy/src/frame/mod.rs index 20292101113e..7f379f2bb82b 100644 --- a/crates/polars-lazy/src/frame/mod.rs +++ b/crates/polars-lazy/src/frame/mod.rs @@ -190,6 +190,11 @@ impl LazyFrame { self } + pub fn _with_fast_projection(mut self, toggle: bool) -> Self { + self.opt_state.fast_projection = toggle; + self + } + /// Return a String describing the naive (un-optimized) logical plan. pub fn describe_plan(&self) -> String { self.logical_plan.describe()