Skip to content

Commit 9f42e13

Browse files
committed
force registration of patched
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
1 parent 51284cd commit 9f42e13

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • vortex-array/src/arrays/patched/vtable

vortex-array/src/arrays/patched/vtable/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ fn apply_patches_primitive<V: NativePType>(
349349

350350
#[cfg(test)]
351351
mod tests {
352+
use crate::session::ArraySessionExt;
352353
use rstest::rstest;
353354
use vortex_buffer::ByteBufferMut;
354355
use vortex_buffer::buffer;
@@ -588,7 +589,9 @@ mod tests {
588589
let dtype = array.dtype().clone();
589590
let len = array.len();
590591

591-
let ctx = ArrayContext::empty();
592+
LEGACY_SESSION.arrays().register(Patched);
593+
594+
let ctx = ArrayContext::empty().with_registry(LEGACY_SESSION.arrays().registry().clone());
592595
let serialized = array
593596
.serialize(&ctx, &LEGACY_SESSION, &SerializeOptions::default())
594597
.unwrap();

0 commit comments

Comments
 (0)