Skip to content

Commit f88bd6a

Browse files
authored
refactor(rust): Purge arrow-rs support (#19312)
1 parent a871f8c commit f88bd6a

File tree

37 files changed

+3
-1180
lines changed

37 files changed

+3
-1180
lines changed

Cargo.lock

-118
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ repository = "https://github.com/pola-rs/polars"
2525
ahash = ">=0.8.5"
2626
aho-corasick = "1.1"
2727
arboard = { version = "3.4.0", default-features = false }
28-
arrow-array = { version = ">=41", default-features = false }
29-
arrow-buffer = { version = ">=41", default-features = false }
30-
arrow-data = { version = ">=41", default-features = false }
31-
arrow-schema = { version = ">=41", default-features = false }
3228
atoi = "2"
3329
atoi_simd = "0.15.5"
3430
atomic-waker = "1"

crates/polars-arrow/Cargo.toml

+1-7
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ multiversion = { workspace = true, optional = true }
6767
# Faster hashing
6868
ahash = { workspace = true }
6969

70-
# Support conversion to/from arrow-rs
71-
arrow-array = { workspace = true, optional = true }
72-
arrow-buffer = { workspace = true, optional = true }
73-
arrow-data = { workspace = true, optional = true }
74-
arrow-schema = { workspace = true, optional = true }
70+
# For async arrow flight conversion
7571
async-stream = { version = "0.3", optional = true }
7672
tokio = { workspace = true, optional = true, features = ["io-util"] }
7773

@@ -101,7 +97,6 @@ getrandom = { version = "0.2", features = ["js"] }
10197
[features]
10298
default = []
10399
full = [
104-
"arrow_rs",
105100
"io_ipc",
106101
"io_flight",
107102
"io_ipc_compression",
@@ -114,7 +109,6 @@ full = [
114109
# parses timezones used in timestamp conversions
115110
"chrono-tz",
116111
]
117-
arrow_rs = ["arrow-buffer", "arrow-schema", "arrow-data", "arrow-array"]
118112
io_ipc = ["arrow-format", "polars-error/arrow-format"]
119113
io_ipc_compression = ["lz4", "zstd", "io_ipc"]
120114
io_flight = ["io_ipc", "arrow-format/flight-data", "async-stream", "futures", "tokio"]

crates/polars-arrow/src/array/binary/data.rs

-43
This file was deleted.

crates/polars-arrow/src/array/binary/mod.rs

-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ mod mutable;
2121
pub use mutable::*;
2222
use polars_error::{polars_bail, PolarsResult};
2323

24-
#[cfg(feature = "arrow_rs")]
25-
mod data;
26-
2724
/// A [`BinaryArray`] is Arrow's semantically equivalent of an immutable `Vec<Option<Vec<u8>>>`.
2825
/// It implements [`Array`].
2926
///

crates/polars-arrow/src/array/boolean/data.rs

-36
This file was deleted.

crates/polars-arrow/src/array/boolean/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ use crate::bitmap::{Bitmap, MutableBitmap};
77
use crate::datatypes::{ArrowDataType, PhysicalType};
88
use crate::trusted_len::TrustedLen;
99

10-
#[cfg(feature = "arrow_rs")]
11-
mod data;
1210
mod ffi;
1311
pub(super) mod fmt;
1412
mod from;

crates/polars-arrow/src/array/dictionary/data.rs

-49
This file was deleted.

crates/polars-arrow/src/array/dictionary/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ use crate::scalar::{new_scalar, Scalar};
88
use crate::trusted_len::TrustedLen;
99
use crate::types::NativeType;
1010

11-
#[cfg(feature = "arrow_rs")]
12-
mod data;
1311
mod ffi;
1412
pub(super) mod fmt;
1513
mod iterator;

0 commit comments

Comments
 (0)