File tree Expand file tree Collapse file tree
vortex-btrblocks/src/schemes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ use vortex_array::session::ArraySessionExt;
3535use vortex_session:: VortexSession ;
3636
3737/// Check if we're using experimental patches deserialization
38- static USE_EXPERIMENTAL_PATCHES : LazyLock < bool > =
38+ pub static USE_EXPERIMENTAL_PATCHES : LazyLock < bool > =
3939 LazyLock :: new ( || env:: var ( "VORTEX_EXPERIMENTAL_PATCHED_ARRAY" ) . is_ok ( ) ) ;
4040
4141/// Initialize fastlanes encodings in the given session.
Original file line number Diff line number Diff line change 33
44//! Integer compression schemes.
55
6- use std:: env;
7- use std:: sync:: LazyLock ;
8-
96use vortex_array:: ArrayRef ;
107use vortex_array:: Canonical ;
118use vortex_array:: IntoArray ;
@@ -35,6 +32,7 @@ use vortex_fastlanes::FoR;
3532use vortex_fastlanes:: FoRArrayExt ;
3633use vortex_fastlanes:: RLE ;
3734use vortex_fastlanes:: RLEArrayExt ;
35+ use vortex_fastlanes:: USE_EXPERIMENTAL_PATCHES ;
3836use vortex_fastlanes:: bitpack_compress:: bit_width_histogram;
3937use vortex_fastlanes:: bitpack_compress:: bitpack_encode;
4038use vortex_fastlanes:: bitpack_compress:: find_best_bit_width;
@@ -298,10 +296,6 @@ impl Scheme for ZigZagScheme {
298296 }
299297}
300298
301- // replicated from vortex-file
302- static USE_EXPERIMENTAL_PATCHES : LazyLock < bool > =
303- LazyLock :: new ( || env:: var ( "VORTEX_EXPERIMENTAL_PATCHED_ARRAY" ) . is_ok ( ) ) ;
304-
305299impl Scheme for BitPackingScheme {
306300 fn scheme_name ( & self ) -> & ' static str {
307301 "vortex.int.bitpacking"
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ use vortex_array::arrays::List;
2121use vortex_array:: arrays:: ListView ;
2222use vortex_array:: arrays:: Masked ;
2323use vortex_array:: arrays:: Null ;
24+ use vortex_array:: arrays:: Patched ;
2425use vortex_array:: arrays:: Primitive ;
2526use vortex_array:: arrays:: Struct ;
2627use vortex_array:: arrays:: VarBin ;
@@ -90,6 +91,10 @@ pub static ALLOWED_ENCODINGS: LazyLock<HashSet<ArrayId>> = LazyLock::new(|| {
9091 allowed. insert ( Masked . id ( ) ) ;
9192 allowed. insert ( Dict . id ( ) ) ;
9293
94+ if * vortex_fastlanes:: USE_EXPERIMENTAL_PATCHES {
95+ allowed. insert ( Patched . id ( ) ) ;
96+ }
97+
9398 // Compressed encodings from encoding crates
9499 allowed. insert ( ALP . id ( ) ) ;
95100 allowed. insert ( ALPRD . id ( ) ) ;
You can’t perform that action at this time.
0 commit comments