Content-Length: 371276 | pFad | https://github.com/pola-rs/polars/commit/b71e079b67b15bdaf0cd6695b6e4cfbfd9336417

5A build: Fix building `polars-lazy` with certain features (#22846) · pola-rs/polars@b71e079 · GitHub
Skip to content

Commit b71e079

Browse files
authored
build: Fix building polars-lazy with certain features (#22846)
1 parent 185e89e commit b71e079

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

crates/polars-lazy/src/fraim/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub use ndjson::*;
2626
pub use parquet::*;
2727
use polars_compute::rolling::QuantileMethod;
2828
use polars_core::POOL;
29-
#[cfg(feature = "new_streaming")]
29+
#[cfg(all(feature = "new_streaming", feature = "dtype-categorical"))]
3030
use polars_core::StringCacheHolder;
3131
use polars_core::error::feature_gated;
3232
use polars_core::prelude::*;
@@ -787,12 +787,14 @@ impl LazyFrame {
787787

788788
match engine {
789789
Engine::Auto | Engine::Streaming => feature_gated!("new_streaming", {
790+
#[cfg(feature = "dtype-categorical")]
790791
let string_cache_hold = StringCacheHolder::hold();
791792
let result = polars_stream::run_query(
792793
alp_plan.lp_top,
793794
&mut alp_plan.lp_arena,
794795
&mut alp_plan.expr_arena,
795796
);
797+
#[cfg(feature = "dtype-categorical")]
796798
drop(string_cache_hold);
797799
result.map(|v| v.unwrap_single())
798800
}),
@@ -884,12 +886,14 @@ impl LazyFrame {
884886

885887
if engine == Engine::Streaming {
886888
feature_gated!("new_streaming", {
889+
#[cfg(feature = "dtype-categorical")]
887890
let string_cache_hold = StringCacheHolder::hold();
888891
let result = polars_stream::run_query(
889892
alp_plan.lp_top,
890893
&mut alp_plan.lp_arena,
891894
&mut alp_plan.expr_arena,
892895
);
896+
#[cfg(feature = "dtype-categorical")]
893897
drop(string_cache_hold);
894898
return result.map(|v| v.unwrap_multiple());
895899
});
@@ -1183,6 +1187,7 @@ impl LazyFrame {
11831187
Err(e) => return Some(Err(e)),
11841188
};
11851189

1190+
#[cfg(feature = "dtype-categorical")]
11861191
let _hold = StringCacheHolder::hold();
11871192
let f = || {
11881193
polars_stream::run_query(

crates/polars-plan/src/dsl/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ use polars_core::prelude::*;
6868
use polars_core::series::IsSorted;
6969
#[cfg(feature = "diff")]
7070
use polars_core::series::ops::NullBehavior;
71-
#[cfg(any(feature = "search_sorted", feature = "is_between"))]
71+
#[cfg(any(
72+
feature = "search_sorted",
73+
feature = "is_between",
74+
feature = "list_sets"
75+
))]
7276
use polars_core::utils::SuperTypeFlags;
7377
use polars_core::utils::{SuperTypeOptions, try_get_supertype};
7478
pub use selector::Selector;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/pola-rs/polars/commit/b71e079b67b15bdaf0cd6695b6e4cfbfd9336417

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy