Skip to content

Commit 04af8e4

Browse files
authored
Trim dev arrow dependencies to individual packages (#1259)
1 parent 887bbc9 commit 04af8e4

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

encodings/alp/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ readme = { workspace = true }
1717
workspace = true
1818

1919
[dependencies]
20-
vortex-fastlanes = { workspace = true }
2120
itertools = { workspace = true }
2221
num-traits = { workspace = true }
2322
serde = { workspace = true, features = ["derive"] }
2423
vortex-array = { workspace = true }
2524
vortex-dtype = { workspace = true }
2625
vortex-error = { workspace = true }
26+
vortex-fastlanes = { workspace = true }
2727
vortex-scalar = { workspace = true }
2828

2929
[dev-dependencies]
30-
arrow = { workspace = true }
30+
arrow-array = { workspace = true }
3131
divan = { workspace = true }
3232
rstest = { workspace = true }
3333

encodings/alp/benches/alp_compress.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#![allow(clippy::unwrap_used)]
22

3-
use arrow::array::{as_primitive_array, ArrowNativeTypeOp, ArrowPrimitiveType};
4-
use arrow::datatypes::{Float32Type, Float64Type};
3+
use arrow_array::cast::as_primitive_array;
4+
use arrow_array::types::{Float32Type, Float64Type};
5+
use arrow_array::{ArrowNativeTypeOp, ArrowPrimitiveType};
56
use divan::{black_box, Bencher};
67
use vortex_alp::{alp_encode_components, ALPArray, ALPFloat, ALPRDFloat, Exponents, RDEncoder};
78
use vortex_array::array::PrimitiveArray;

vortex-serde/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ vortex-scalar = { workspace = true, features = ["flatbuffers"] }
3838
vortex-schema = { workspace = true }
3939

4040
[dev-dependencies]
41-
arrow = { workspace = true, features = ["ipc"] }
4241
arrow-array = { workspace = true }
4342
arrow-ipc = { workspace = true, features = ["lz4"] }
4443
arrow-schema = { workspace = true }

vortex-serde/benches/ipc_take.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
use std::sync::Arc;
33
use std::time::Duration;
44

5-
use arrow::ipc::reader::StreamReader as ArrowStreamReader;
65
use arrow_array::{Array, Int32Array, RecordBatch};
6+
use arrow_ipc::reader::StreamReader;
77
use arrow_ipc::writer::{IpcWriteOptions, StreamWriter as ArrowStreamWriter};
88
use arrow_ipc::{CompressionType, MetadataVersion};
99
use arrow_schema::{DataType, Field, Schema};
@@ -44,7 +44,7 @@ fn ipc_take(c: &mut Criterion) {
4444

4545
b.iter(|| {
4646
let mut cursor = std::io::Cursor::new(&buffer);
47-
let mut reader = ArrowStreamReader::try_new(&mut cursor, None).unwrap();
47+
let mut reader = StreamReader::try_new(&mut cursor, None).unwrap();
4848
let batch = reader.next().unwrap().unwrap();
4949
let array_from_batch = batch.column(0);
5050
let array = array_from_batch

0 commit comments

Comments
 (0)