Skip to content

Commit 341710d

Browse files
feat: add vortex-common a create for shared defs (#3490)
Signed-off-by: Joe Isaacs <[email protected]>
1 parent bdb8cf8 commit 341710d

File tree

60 files changed

+111
-59
lines changed

Some content is hidden

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

60 files changed

+111
-59
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ members = [
77
"vortex-array",
88
"vortex-btrblocks",
99
"vortex-buffer",
10+
"vortex-common",
1011
"vortex-datafusion",
1112
"vortex-dtype",
1213
"vortex-duckdb",
@@ -179,6 +180,7 @@ vortex-array = { version = "0.1.0", path = "./vortex-array", default-features =
179180
vortex-btrblocks = { version = "0.1.0", path = "./vortex-btrblocks", default-features = false }
180181
vortex-buffer = { version = "0.1.0", path = "./vortex-buffer", default-features = false }
181182
vortex-bytebool = { version = "0.1.0", path = "./encodings/bytebool", default-features = false }
183+
vortex-common = { version = "0.1.0", path = "./vortex-common", default-features = false }
182184
vortex-datafusion = { version = "0.1.0", path = "./vortex-datafusion", default-features = false }
183185
vortex-datetime-parts = { version = "0.1.0", path = "./encodings/datetime-parts", default-features = false }
184186
vortex-decimal-byte-parts = { version = "0.1.0", path = "encodings/decimal-byte-parts", default-features = false }

bench-vortex/src/bin/tpch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use itertools::Itertools;
2828
use log::{info, warn};
2929
use similar::{ChangeTag, TextDiff};
3030
use url::Url;
31-
use vortex::aliases::hash_map::HashMap;
31+
use vortex::common::aliases::hash_map::HashMap;
3232
use vortex::error::VortexExpect;
3333
use vortex_datafusion::persistent::metrics::VortexMetricsFinder;
3434

bench-vortex/src/display.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use itertools::Itertools;
55
use tabled::builder::Builder;
66
use tabled::settings::themes::Colorization;
77
use tabled::settings::{Color, Style};
8-
use vortex::aliases::hash_map::HashMap;
8+
use vortex::common::aliases::hash_map::HashMap;
99

1010
use crate::Target;
1111
use crate::measurements::{MeasurementValue, TableValue, ToJson, ToTable};

bench-vortex/src/metrics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use opentelemetry_otlp::SpanExporter as OtlpSpanExporter;
1010
use opentelemetry_sdk::Resource;
1111
use opentelemetry_sdk::error::OTelSdkResult;
1212
use opentelemetry_sdk::trace::{IdGenerator, RandomIdGenerator, SpanData, SpanExporter};
13-
use vortex::aliases::hash_map::HashMap;
13+
use vortex::common::aliases::hash_map::HashMap;
1414

1515
use crate::Format;
1616
use crate::engines::df::GIT_COMMIT_ID;

bench-vortex/src/public_bi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use tokio::runtime::Handle;
2727
use tracing::{debug, info};
2828
use url::Url;
2929
use vortex::ArrayRef;
30-
use vortex::aliases::hash_map::HashMap;
30+
use vortex::common::aliases::hash_map::HashMap;
3131
use vortex::error::{VortexResult, vortex_err};
3232
use vortex::file::{VortexLayoutStrategy, VortexOpenOptions, VortexWriteOptions};
3333
use vortex::stream::ArrayStreamExt;

bench-vortex/src/random_access/take.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use parquet::arrow::async_reader::AsyncFileReader;
1313
use parquet::file::metadata::RowGroupMetaData;
1414
use stream::StreamExt;
1515
use tokio::runtime::Handle;
16-
use vortex::aliases::hash_map::HashMap;
1716
use vortex::buffer::Buffer;
17+
use vortex::common::aliases::hash_map::HashMap;
1818
use vortex::file::VortexOpenOptions;
1919
use vortex::stream::ArrayStreamExt;
2020
use vortex::{Array, ArrayRef, IntoArray};

bench-vortex/src/tpch/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub mod named_locks {
100100
use std::sync::{Arc, LazyLock};
101101

102102
use tokio::sync::Mutex;
103-
use vortex::aliases::hash_map::HashMap;
103+
use vortex::common::aliases::hash_map::HashMap;
104104

105105
type NamedLocksMap = LazyLock<Mutex<HashMap<String, Arc<Mutex<()>>>>>;
106106
static NAMED_LOCKS: NamedLocksMap = LazyLock::new(|| Mutex::new(HashMap::new()));

encodings/alp/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ prost = { workspace = true }
2323
rustc-hash = { workspace = true }
2424
vortex-array = { workspace = true }
2525
vortex-buffer = { workspace = true }
26+
vortex-common = { workspace = true }
2627
vortex-dtype = { workspace = true }
2728
vortex-error = { workspace = true }
2829
vortex-fastlanes = { workspace = true }

encodings/alp/src/alp_rd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ use std::ops::{Shl, Shr};
1414
use itertools::Itertools;
1515
use num_traits::{Float, One, PrimInt};
1616
use rustc_hash::FxBuildHasher;
17-
use vortex_array::aliases::hash_map::HashMap;
1817
use vortex_array::arrays::PrimitiveArray;
1918
use vortex_array::vtable::ValidityHelper;
2019
use vortex_array::{Array, IntoArray, ToCanonical};
2120
use vortex_buffer::{Buffer, BufferMut};
21+
use vortex_common::aliases::hash_map::HashMap;
2222
use vortex_dtype::{DType, NativePType, match_each_integer_ptype};
2323
use vortex_error::{VortexExpect, VortexResult, VortexUnwrap, vortex_bail};
2424
use vortex_fastlanes::bitpack_encode_unchecked;

0 commit comments

Comments
 (0)