Skip to content

Commit

Permalink
refactor: Remove unused feature flags from polars-mem-engine (#18679)
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Sep 12, 2024
1 parent f7e168a commit b0145cc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 20 deletions.
2 changes: 1 addition & 1 deletion crates/polars-lazy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ meta = ["polars-plan/meta"]
pivot = ["polars-core/rows", "polars-ops/pivot", "polars-plan/pivot"]
top_k = ["polars-plan/top_k"]
semi_anti_join = ["polars-plan/semi_anti_join"]
cse = ["polars-plan/cse", "polars-mem-engine/cse"]
cse = ["polars-plan/cse"]
propagate_nans = ["polars-plan/propagate_nans", "polars-expr/propagate_nans"]
coalesce = ["polars-plan/coalesce"]
regex = ["polars-plan/regex"]
Expand Down
21 changes: 5 additions & 16 deletions crates/polars-mem-engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,17 @@ json = ["polars-io/json", "polars-plan/json", "polars-json"]
csv = ["polars-io/csv", "polars-plan/csv"]
cloud = ["async", "polars-plan/cloud", "tokio", "futures"]
parquet = ["polars-io/parquet", "polars-plan/parquet"]
temporal = [
"dtype-datetime",
"dtype-date",
"dtype-time",
"dtype-i8",
"dtype-i16",
"dtype-duration",
"polars-plan/temporal",
]
dtype-array = ["polars-plan/dtype-array", "polars-ops/dtype-array"]
dtype-categorical = ["polars-plan/dtype-categorical"]
dtype-date = ["polars-plan/dtype-date", "polars-time/dtype-date", "temporal"]
dtype-datetime = ["polars-plan/dtype-datetime", "polars-time/dtype-datetime", "temporal"]
dtype-date = ["polars-plan/dtype-date", "polars-time/dtype-date"]
dtype-datetime = ["polars-plan/dtype-datetime", "polars-time/dtype-datetime"]
dtype-decimal = ["polars-plan/dtype-decimal"]
dtype-duration = ["polars-plan/dtype-duration", "polars-time/dtype-duration", "temporal"]
dtype-duration = ["polars-plan/dtype-duration", "polars-time/dtype-duration"]
dtype-i16 = ["polars-plan/dtype-i16"]
dtype-i8 = ["polars-plan/dtype-i8"]
dtype-struct = ["polars-plan/dtype-struct", "polars-ops/dtype-struct"]
dtype-time = ["polars-plan/dtype-time", "polars-time/dtype-time", "temporal"]
dtype-time = ["polars-plan/dtype-time", "polars-time/dtype-time"]
dtype-u16 = ["polars-plan/dtype-u16"]
dtype-u8 = ["polars-plan/dtype-u8"]
object = ["polars-core/object"]
dynamic_group_by = ["polars-plan/dynamic_group_by", "polars-time", "temporal", "polars-expr/dynamic_group_by"]
dynamic_group_by = ["polars-plan/dynamic_group_by", "polars-time", "polars-expr/dynamic_group_by"]
asof_join = ["polars-plan/asof_join", "polars-time", "polars-ops/asof_join"]
cse = ["polars-plan/cse"]
2 changes: 1 addition & 1 deletion crates/polars-mem-engine/src/executors/scan/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub(crate) use ndjson::JsonExec;
pub(crate) use parquet::ParquetExec;
#[cfg(any(feature = "ipc", feature = "parquet", feature = "csv"))]
use polars_io::predicates::PhysicalIoExpr;
#[cfg(any(feature = "parquet", feature = "csv", feature = "ipc", feature = "cse"))]
#[cfg(any(feature = "parquet", feature = "csv", feature = "ipc"))]
use polars_io::prelude::*;
use polars_plan::global::_set_n_rows_for_scan;

Expand Down
4 changes: 2 additions & 2 deletions crates/polars-stream/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ polars-core = { workspace = true }
polars-error = { workspace = true }
polars-expr = { workspace = true, features = ["dtype-full"] }
# TODO: feature gate
polars-mem-engine = { workspace = true, features = ["parquet", "csv", "json", "ipc", "cloud", "python", "temporal", "dtype-categorical", "dtype-i8", "dtype-i16", "dtype-u8", "dtype-u16", "dtype-decimal", "dtype-struct", "object"] }
polars-mem-engine = { workspace = true, features = ["parquet", "csv", "json", "ipc", "cloud", "python", "dtype-categorical", "dtype-i8", "dtype-i16", "dtype-u8", "dtype-u16", "dtype-decimal", "dtype-struct", "object"] }
polars-parquet = { workspace = true }
polars-plan = { workspace = true, features = ["parquet", "csv", "json", "ipc", "cloud", "python", "serde", "temporal", "dtype-categorical", "dtype-i8", "dtype-i16", "dtype-u8", "dtype-u16", "dtype-decimal", "dtype-struct", "object"] }
polars-plan = { workspace = true, features = ["parquet", "csv", "json", "ipc", "cloud", "python", "serde", "dtype-categorical", "dtype-i8", "dtype-i16", "dtype-u8", "dtype-u16", "dtype-decimal", "dtype-struct", "object"] }

[build-dependencies]
version_check = { workspace = true }
Expand Down

0 comments on commit b0145cc

Please sign in to comment.