Skip to content

Commit

Permalink
refactor(rust): Purge arrow-rs support (#19312)
Browse files Browse the repository at this point in the history
  • Loading branch information
orlp authored Oct 19, 2024
1 parent a871f8c commit f88bd6a
Show file tree
Hide file tree
Showing 37 changed files with 3 additions and 1,180 deletions.
118 changes: 0 additions & 118 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ repository = "https://github.com/pola-rs/polars"
ahash = ">=0.8.5"
aho-corasick = "1.1"
arboard = { version = "3.4.0", default-features = false }
arrow-array = { version = ">=41", default-features = false }
arrow-buffer = { version = ">=41", default-features = false }
arrow-data = { version = ">=41", default-features = false }
arrow-schema = { version = ">=41", default-features = false }
atoi = "2"
atoi_simd = "0.15.5"
atomic-waker = "1"
Expand Down
8 changes: 1 addition & 7 deletions crates/polars-arrow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ multiversion = { workspace = true, optional = true }
# Faster hashing
ahash = { workspace = true }

# Support conversion to/from arrow-rs
arrow-array = { workspace = true, optional = true }
arrow-buffer = { workspace = true, optional = true }
arrow-data = { workspace = true, optional = true }
arrow-schema = { workspace = true, optional = true }
# For async arrow flight conversion
async-stream = { version = "0.3", optional = true }
tokio = { workspace = true, optional = true, features = ["io-util"] }

Expand Down Expand Up @@ -101,7 +97,6 @@ getrandom = { version = "0.2", features = ["js"] }
[features]
default = []
full = [
"arrow_rs",
"io_ipc",
"io_flight",
"io_ipc_compression",
Expand All @@ -114,7 +109,6 @@ full = [
# parses timezones used in timestamp conversions
"chrono-tz",
]
arrow_rs = ["arrow-buffer", "arrow-schema", "arrow-data", "arrow-array"]
io_ipc = ["arrow-format", "polars-error/arrow-format"]
io_ipc_compression = ["lz4", "zstd", "io_ipc"]
io_flight = ["io_ipc", "arrow-format/flight-data", "async-stream", "futures", "tokio"]
Expand Down
43 changes: 0 additions & 43 deletions crates/polars-arrow/src/array/binary/data.rs

This file was deleted.

3 changes: 0 additions & 3 deletions crates/polars-arrow/src/array/binary/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ mod mutable;
pub use mutable::*;
use polars_error::{polars_bail, PolarsResult};

#[cfg(feature = "arrow_rs")]
mod data;

/// A [`BinaryArray`] is Arrow's semantically equivalent of an immutable `Vec<Option<Vec<u8>>>`.
/// It implements [`Array`].
///
Expand Down
36 changes: 0 additions & 36 deletions crates/polars-arrow/src/array/boolean/data.rs

This file was deleted.

2 changes: 0 additions & 2 deletions crates/polars-arrow/src/array/boolean/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ use crate::bitmap::{Bitmap, MutableBitmap};
use crate::datatypes::{ArrowDataType, PhysicalType};
use crate::trusted_len::TrustedLen;

#[cfg(feature = "arrow_rs")]
mod data;
mod ffi;
pub(super) mod fmt;
mod from;
Expand Down
49 changes: 0 additions & 49 deletions crates/polars-arrow/src/array/dictionary/data.rs

This file was deleted.

2 changes: 0 additions & 2 deletions crates/polars-arrow/src/array/dictionary/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ use crate::scalar::{new_scalar, Scalar};
use crate::trusted_len::TrustedLen;
use crate::types::NativeType;

#[cfg(feature = "arrow_rs")]
mod data;
mod ffi;
pub(super) mod fmt;
mod iterator;
Expand Down
Loading

0 comments on commit f88bd6a

Please sign in to comment.