Skip to content

Commit 243deeb

Browse files
chore[array/expr]: move vortex-expr into vortex_array::expr (#5269)
Signed-off-by: Joe Isaacs <[email protected]> --------- Signed-off-by: Joe Isaacs <[email protected]>
1 parent fe7aef6 commit 243deeb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+477
-560
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ members = [
1414
"vortex-dtype",
1515
"vortex-duckdb",
1616
"vortex-error",
17-
"vortex-expr",
1817
"vortex-ffi",
1918
"vortex-file",
2019
"vortex-flatbuffers",
@@ -230,7 +229,6 @@ vortex-decimal-byte-parts = { version = "0.1.0", path = "encodings/decimal-byte-
230229
vortex-dict = { version = "0.1.0", path = "./encodings/dict", default-features = false }
231230
vortex-dtype = { version = "0.1.0", path = "./vortex-dtype", default-features = false }
232231
vortex-error = { version = "0.1.0", path = "./vortex-error", default-features = false }
233-
vortex-expr = { version = "0.1.0", path = "./vortex-expr", default-features = false }
234232
vortex-fastlanes = { version = "0.1.0", path = "./encodings/fastlanes", default-features = false }
235233
vortex-file = { version = "0.1.0", path = "./vortex-file", default-features = false }
236234
vortex-flatbuffers = { version = "0.1.0", path = "./vortex-flatbuffers", default-features = false }

encodings/fastlanes/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ rand = { workspace = true }
4444
rstest = { workspace = true }
4545
vortex-alp = { path = "../alp" }
4646
vortex-array = { workspace = true, features = ["test-harness"] }
47-
vortex-expr = { workspace = true }
4847
vortex-fastlanes = { path = ".", features = ["test-harness"] }
4948

5049
[features]

encodings/fastlanes/benches/pipeline_bitpacking_compare_scalar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ use mimalloc::MiMalloc;
99
use rand::prelude::StdRng;
1010
use rand::{Rng, SeedableRng};
1111
use vortex_array::compute::{filter, warm_up_vtables};
12+
use vortex_array::expr::{lit, lt, root};
1213
use vortex_array::{Array, ArrayRef, IntoArray, ToCanonical};
1314
use vortex_buffer::{BitBuffer, BufferMut};
1415
use vortex_dtype::NativePType;
1516
use vortex_error::VortexResult;
16-
use vortex_expr::{lit, lt, root};
1717
use vortex_fastlanes::FoRArray;
1818
use vortex_fastlanes::bitpack_compress::bitpack_to_best_bit_width;
1919
use vortex_mask::Mask;

encodings/sequence/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ itertools = { workspace = true }
3131
rstest = { workspace = true }
3232
tokio = { workspace = true, features = ["full"] }
3333
vortex-array = { path = "../../vortex-array", features = ["test-harness"] }
34-
vortex-expr = { path = "../../vortex-expr" }
3534
vortex-file = { path = "../../vortex-file", features = ["tokio"] }
3635
vortex-layout = { path = "../../vortex-layout" }
3736

fuzz/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ vortex-btrblocks = { workspace = true }
2727
vortex-buffer = { workspace = true }
2828
vortex-dtype = { workspace = true, features = ["arbitrary"] }
2929
vortex-error = { workspace = true }
30-
vortex-expr = { workspace = true, features = ["arbitrary"] }
3130
vortex-file = { workspace = true, features = ["tokio", "zstd"] }
3231
vortex-io = { workspace = true }
3332
vortex-layout = { workspace = true, features = ["zstd"] }

fuzz/fuzz_targets/file_io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ use itertools::Itertools;
88
use libfuzzer_sys::{Corpus, fuzz_target};
99
use vortex_array::arrays::ChunkedArray;
1010
use vortex_array::compute::{Operator, compare, filter};
11+
use vortex_array::expr::{lit, root};
1112
use vortex_array::{Array, Canonical, IntoArray, ToCanonical};
1213
use vortex_buffer::ByteBufferMut;
1314
use vortex_dtype::{DType, StructFields};
1415
use vortex_error::{VortexExpect, VortexUnwrap, vortex_panic};
15-
use vortex_expr::{lit, root};
1616
use vortex_file::{OpenOptionsSessionExt, WriteOptionsSessionExt, WriteStrategyBuilder};
1717
use vortex_fuzz::{CompressorStrategy, FuzzFileAction, RUNTIME, SESSION};
1818
use vortex_layout::layouts::compact::CompactCompressor;

fuzz/src/file/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
use libfuzzer_sys::arbitrary::{Arbitrary, Unstructured};
55
use vortex_array::ArrayRef;
66
use vortex_array::arrays::arbitrary::ArbitraryArray;
7-
use vortex_expr::Expression;
8-
use vortex_expr::arbitrary::{filter_expr, projection_expr};
7+
use vortex_array::expr::Expression;
8+
use vortex_array::expr::arbitrary::{filter_expr, projection_expr};
99

1010
use crate::array::CompressorStrategy;
1111

vortex-array/Cargo.toml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ homepage = { workspace = true }
88
include = { workspace = true }
99
keywords = { workspace = true }
1010
license = { workspace = true }
11-
readme = { workspace = true }
11+
readme = "README.md"
1212
repository = { workspace = true }
1313
rust-version = { workspace = true }
1414
version = { workspace = true }
@@ -54,6 +54,7 @@ rand = { workspace = true }
5454
rstest = { workspace = true, optional = true }
5555
rstest_reuse = { workspace = true, optional = true }
5656
rustc-hash = { workspace = true }
57+
serde = { workspace = true, optional = true, features = ["derive"] }
5758
simdutf8 = { workspace = true }
5859
static_assertions = { workspace = true }
5960
tabled = { workspace = true, optional = true, default-features = false, features = [
@@ -68,6 +69,7 @@ vortex-flatbuffers = { workspace = true, features = ["array"] }
6869
vortex-io = { workspace = true }
6970
vortex-mask = { workspace = true }
7071
vortex-metrics = { workspace = true }
72+
vortex-proto = { workspace = true, features = ["expr"] }
7173
vortex-scalar = { workspace = true }
7274
vortex-session = { workspace = true }
7375
vortex-utils = { workspace = true }
@@ -82,6 +84,13 @@ arbitrary = [
8284
canonical_counter = []
8385
table-display = ["dep:tabled"]
8486
test-harness = ["dep:goldenfile", "dep:rstest", "dep:rstest_reuse"]
87+
serde = [
88+
"dep:serde",
89+
"vortex-buffer/serde",
90+
"vortex-dtype/serde",
91+
"vortex-error/serde",
92+
"vortex-mask/serde",
93+
]
8594

8695
[dev-dependencies]
8796
arrow-cast = { workspace = true }
@@ -126,3 +135,8 @@ harness = false
126135
[[bench]]
127136
name = "varbinview_compact"
128137
harness = false
138+
139+
[[bench]]
140+
name = "expr_large_struct_pack"
141+
path = "benches/expr/large_struct_pack.rs"
142+
harness = false
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# Vortex Expressions
1+
# Vortex array
2+
3+
TODO
4+
5+
Also contains
6+
7+
## Vortex Expressions
28

39
A crate defining serializable predicate expressions. Used predominantly for filter push-down.
410

0 commit comments

Comments
 (0)