Skip to content

Commit a126ed2

Browse files
committed
open up flag
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
1 parent 5db6d93 commit a126ed2

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/bench.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ jobs:
8888
shell: bash
8989
env:
9090
RUST_BACKTRACE: full
91-
VORTEX_EXPERIMENTAL_PATCHED_ARRAY: 1
9291
run: |
9392
bash scripts/bench-taskset.sh target/release_debug/${{ matrix.benchmark.id }} --formats ${{ matrix.benchmark.formats }} -d gh-json -o results.json
9493

.github/workflows/sql-benchmarks.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ jobs:
150150
shell: bash
151151
env:
152152
RUST_BACKTRACE: full
153-
VORTEX_EXPERIMENTAL_PATCHED_ARRAY: 1
154153
run: |
155154
# Extract all unique formats from targets (e.g., "datafusion:parquet,duckdb:vortex" -> "parquet,vortex")
156155
all_formats=$(echo "${{ matrix.targets }}" | tr ',' '\n' | sed 's/^[^:]*://' | sort -u | tr '\n' ',' | sed 's/,$//')

encodings/fastlanes/src/lib.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,20 @@ use vortex_array::aggregate_fn::session::AggregateFnSessionExt;
3434
use vortex_array::session::ArraySessionExt;
3535
use vortex_session::VortexSession;
3636

37-
/// Check if we're using experimental patches deserialization
37+
/// Flag indicating if experimental patched array support is enabled.
38+
///
39+
/// This is set using the environment variable `VORTEX_EXPERIMENTAL_PATCHED_ARRAY`.
40+
///
41+
/// When this is true, any BitPacked array with interior patches will be read as a `Patched`
42+
/// array, and the builtin compressor will use Patched array with BitPacked instead of
43+
/// BitPacked array with interior patches.
3844
pub static USE_EXPERIMENTAL_PATCHES: LazyLock<bool> =
3945
LazyLock::new(|| env::var("VORTEX_EXPERIMENTAL_PATCHED_ARRAY").is_ok());
4046

4147
/// Initialize fastlanes encodings in the given session.
4248
pub fn initialize(session: &VortexSession) {
49+
// If we're using the experimental Patched encoding, register a shim
50+
// for BitPacked with interior patches decode as Patched array.
4351
if *USE_EXPERIMENTAL_PATCHES {
4452
session.arrays().register(BitPackedPatchedPlugin);
4553
} else {

0 commit comments

Comments
 (0)