diff --git a/vortex-file/src/lib.rs b/vortex-file/src/lib.rs index 6ef1be9b58c..38fe554c664 100644 --- a/vortex-file/src/lib.rs +++ b/vortex-file/src/lib.rs @@ -182,6 +182,11 @@ pub fn register_default_encodings(session: &mut VortexSession) { arrays.register(ZigZagVTable::ID, ZigZagVTable); #[cfg(feature = "zstd")] arrays.register(vortex_zstd::ZstdVTable::ID, vortex_zstd::ZstdVTable); + #[cfg(all(feature = "zstd", feature = "unstable_encodings"))] + arrays.register( + vortex_zstd::ZstdBuffersVTable::ID, + vortex_zstd::ZstdBuffersVTable, + ); } // Eventually all encodings crates should expose an initialize function. For now it's only diff --git a/vortex-test/e2e/Cargo.toml b/vortex-test/e2e/Cargo.toml index 3182d95a93b..712bffae73e 100644 --- a/vortex-test/e2e/Cargo.toml +++ b/vortex-test/e2e/Cargo.toml @@ -15,6 +15,9 @@ version = { workspace = true } [lints] workspace = true +[features] +unstable_encodings = ["vortex/unstable_encodings"] + [dependencies] futures = { workspace = true } rstest = { workspace = true } diff --git a/vortex-test/e2e/src/lib.rs b/vortex-test/e2e/src/lib.rs index f97eb4e398d..2e8d3c77be0 100644 --- a/vortex-test/e2e/src/lib.rs +++ b/vortex-test/e2e/src/lib.rs @@ -25,6 +25,9 @@ mod tests { PrimitiveArray::new(Buffer::from_iter(values), Validity::NonNullable).into_array(); // Write in parallel and verify all sizes match expected + #[cfg(feature = "unstable_encodings")] + const EXPECTED_SIZE: usize = 216188; + #[cfg(not(feature = "unstable_encodings"))] const EXPECTED_SIZE: usize = 216156; let futures: Vec<_> = (0..5) .map(|_| {