@@ -86,6 +86,7 @@ mod tests {
8686 #[ cfg( feature = "zstd" ) ]
8787 use vortex_array:: ArrayId ;
8888 use vortex_array:: IntoArray ;
89+ #[ cfg( feature = "zstd" ) ]
8990 use vortex_array:: VTable ;
9091 use vortex_array:: VortexSessionExecute ;
9192 use vortex_array:: arrays:: BoolArray ;
@@ -94,6 +95,10 @@ mod tests {
9495 use vortex_array:: arrays:: List ;
9596 use vortex_array:: arrays:: ListView ;
9697 use vortex_array:: arrays:: ListViewArray ;
98+ #[ cfg( feature = "zstd" ) ]
99+ use vortex_array:: arrays:: Primitive ;
100+ #[ cfg( feature = "zstd" ) ]
101+ use vortex_array:: arrays:: VarBinView ;
97102 use vortex_array:: arrays:: VarBinViewArray ;
98103 use vortex_array:: assert_arrays_eq;
99104 use vortex_array:: dtype:: DType ;
@@ -103,6 +108,10 @@ mod tests {
103108 use vortex_buffer:: buffer;
104109 use vortex_error:: VortexResult ;
105110 use vortex_session:: VortexSession ;
111+ #[ cfg( feature = "zstd" ) ]
112+ use vortex_zstd:: schemes:: binary:: ZstdScheme ;
113+ #[ cfg( feature = "zstd" ) ]
114+ use vortex_zstd:: schemes:: binary_buffers:: ZstdBuffersScheme ;
106115
107116 use crate :: BtrBlocksCompressor ;
108117
@@ -315,19 +324,9 @@ mod tests {
315324
316325 let session = vortex_array:: array_session ( ) ;
317326 vortex_zstd:: initialize ( & session) ;
318- crate :: CompressionSessionExt :: register_scheme (
319- & session,
320- & vortex_zstd:: schemes:: binary:: ZstdScheme ,
321- ) ;
322- crate :: CompressionSessionExt :: register_scheme (
323- & session,
324- & vortex_zstd:: schemes:: binary_buffers:: ZstdBuffersScheme ,
325- ) ;
326- let permitted = [
327- allowed,
328- vortex_array:: arrays:: VarBinView . id ( ) ,
329- vortex_array:: arrays:: Primitive . id ( ) ,
330- ] ;
327+ crate :: CompressionSessionExt :: register_scheme ( & session, & ZstdScheme ) ;
328+ crate :: CompressionSessionExt :: register_scheme ( & session, & ZstdBuffersScheme ) ;
329+ let permitted = [ allowed, VarBinView . id ( ) , Primitive . id ( ) ] ;
331330 let compressor = BtrBlocksCompressor :: from_session_with_encodings ( & session, permitted) ;
332331 let mut ctx = SESSION . create_execution_ctx ( ) ;
333332 let compressed = compressor. compress ( & array. clone ( ) . into_array ( ) , & mut ctx) ?;
@@ -353,6 +352,7 @@ mod permission_tests {
353352 use vortex_edition:: EDITION_DECLARATIONS ;
354353 use vortex_edition:: EDITION_FAMILIES ;
355354 use vortex_edition:: EditionSessionExt ;
355+ use vortex_edition:: declarations:: core:: CORE_2026_08_3 ;
356356 use vortex_error:: VortexResult ;
357357 use vortex_fastlanes:: BitPacked ;
358358 use vortex_fastlanes:: schemes:: for_:: FoRScheme ;
@@ -412,7 +412,7 @@ mod permission_tests {
412412 for edition in EDITION_DECLARATIONS {
413413 session. register_edition ( edition) ?;
414414 }
415- session. enable_edition ( vortex_edition :: declarations :: core :: CORE_2026_08_3 ) ?;
415+ session. enable_edition ( CORE_2026_08_3 ) ?;
416416 let input = buffer ! [ 1i32 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ] . into_array ( ) ;
417417 let output = BtrBlocksCompressor :: from_session ( & session)
418418 . compress ( & input, & mut session. create_execution_ctx ( ) ) ?;
0 commit comments