Skip to content

Commit 6d16cce

Browse files
committed
another pass
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
1 parent 0f9960d commit 6d16cce

174 files changed

Lines changed: 261 additions & 243 deletions

File tree

Some content is hidden

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

encodings/alp/benches/alp_compress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const BENCH_ARGS: &[(usize, f64, f64)] = &[
5151
];
5252

5353
static SESSION: LazyLock<VortexSession> = LazyLock::new(|| {
54-
let mut builder = vortex_array::array_session().to_builder();
54+
let mut builder = vortex_array::array_session();
5555
vortex_alp::initialize(&mut builder);
5656
builder.build()
5757
});

encodings/alp/src/alp/array.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,8 @@ mod tests {
482482
use crate::alp_encode;
483483
use crate::decompress_into_array;
484484

485-
static SESSION: LazyLock<VortexSession> = LazyLock::new(vortex_array::array_session);
485+
static SESSION: LazyLock<VortexSession> =
486+
LazyLock::new(|| vortex_array::array_session().build());
486487

487488
#[rstest]
488489
#[case(0)]

encodings/alp/src/alp/plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ mod tests {
110110
use crate::alp_encode;
111111

112112
static SESSION: LazyLock<VortexSession> = LazyLock::new(|| {
113-
let session = vortex_array::array_session();
113+
let session = vortex_array::array_session().build();
114114
session.arrays().register(ALPPatchedPlugin);
115115
session
116116
});

encodings/bytebool/src/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ mod tests {
354354
let array = ByteBool::from_option_vec(vec![Some(true), None, Some(false), None]);
355355
let dtype = array.dtype().clone();
356356
let len = array.len();
357-
let session = vortex_array::array_session();
357+
let session = vortex_array::array_session().build();
358358
session.arrays().register(ByteBool);
359359

360360
let ctx = ArrayContext::empty();

encodings/datetime-parts/src/canonical.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ mod test {
132132
],
133133
validity.clone(),
134134
);
135-
let mut ctx = ExecutionCtx::new(vortex_array::array_session());
135+
let mut ctx = ExecutionCtx::new(vortex_array::array_session().build());
136136
let date_times = DateTimeParts::try_from_temporal(
137137
TemporalArray::new_timestamp(
138138
milliseconds.clone().into_array(),

encodings/experimental/onpair/benches/decode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ use vortex_onpair::onpair_compress;
8080
use vortex_session::VortexSession;
8181

8282
static SESSION: LazyLock<VortexSession> = LazyLock::new(|| {
83-
let mut builder = vortex_array::array_session().to_builder();
83+
let mut builder = vortex_array::array_session();
8484
vortex_onpair::initialize(&mut builder);
8585
builder.build()
8686
});

encodings/experimental/onpair/src/compute/compare.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ mod tests {
8484
use crate::compress::DEFAULT_DICT12_CONFIG;
8585
use crate::compress::onpair_compress;
8686

87-
static SESSION: LazyLock<VortexSession> = LazyLock::new(vortex_array::array_session);
87+
static SESSION: LazyLock<VortexSession> =
88+
LazyLock::new(|| vortex_array::array_session().build());
8889

8990
#[cfg_attr(miri, ignore)]
9091
#[rstest]

encodings/experimental/onpair/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use crate::OnPairMetadata;
2727
use crate::compress::DEFAULT_DICT12_CONFIG;
2828
use crate::compress::onpair_compress;
2929

30-
static SESSION: LazyLock<VortexSession> = LazyLock::new(vortex_array::array_session);
30+
static SESSION: LazyLock<VortexSession> = LazyLock::new(|| vortex_array::array_session().build());
3131

3232
fn sample_input() -> VarBinArray {
3333
VarBinArray::from_iter(

encodings/experimental/onpair/tests/big_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use vortex_onpair::DEFAULT_DICT12_CONFIG;
3030
use vortex_onpair::onpair_compress;
3131
use vortex_session::VortexSession;
3232

33-
static SESSION: LazyLock<VortexSession> = LazyLock::new(vortex_array::array_session);
33+
static SESSION: LazyLock<VortexSession> = LazyLock::new(|| vortex_array::array_session().build());
3434

3535
fn corpus(n: usize) -> Vec<String> {
3636
let templates: &[&str] = &[

encodings/fastlanes/benches/bitpack_compare.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn main() {
3636
}
3737

3838
static SESSION: LazyLock<VortexSession> = LazyLock::new(|| {
39-
let mut builder = vortex_array::array_session().to_builder();
39+
let mut builder = vortex_array::array_session();
4040
vortex_fastlanes::initialize(&mut builder);
4141
builder.build()
4242
});

0 commit comments

Comments
 (0)