@@ -28,6 +28,8 @@ use vortex_session::VortexSession;
2828use vortex_sparse:: Sparse ;
2929
3030use crate :: BtrBlocksCompressor ;
31+ use crate :: BtrBlocksCompressorBuilder ;
32+ use crate :: DELTA_SCHEME ;
3133static SESSION : LazyLock < VortexSession > = LazyLock :: new ( vortex_array:: array_session) ;
3234
3335#[ test]
@@ -174,7 +176,9 @@ fn test_delta_compressed() -> VortexResult<()> {
174176 . collect ( ) ;
175177 let array = PrimitiveArray :: new ( Buffer :: copy_from ( & values) , Validity :: NonNullable ) ;
176178
177- let btr = BtrBlocksCompressor :: default ( ) ;
179+ let btr = BtrBlocksCompressorBuilder :: default ( )
180+ . with_new_scheme ( & DELTA_SCHEME )
181+ . build ( ) ;
178182 let compressed = btr. compress (
179183 & array. clone ( ) . into_array ( ) ,
180184 & mut SESSION . create_execution_ctx ( ) ,
@@ -212,7 +216,9 @@ fn test_delta_compressed_unaligned_length() -> VortexResult<()> {
212216 . collect ( ) ;
213217 let array = PrimitiveArray :: new ( Buffer :: copy_from ( & values) , Validity :: NonNullable ) ;
214218
215- let btr = BtrBlocksCompressor :: default ( ) ;
219+ let btr = BtrBlocksCompressorBuilder :: default ( )
220+ . with_new_scheme ( & DELTA_SCHEME )
221+ . build ( ) ;
216222 let compressed = btr. compress (
217223 & array. clone ( ) . into_array ( ) ,
218224 & mut SESSION . create_execution_ctx ( ) ,
@@ -239,7 +245,9 @@ fn test_delta_nullable_unaligned_sum() -> VortexResult<()> {
239245 let array =
240246 PrimitiveArray :: from_option_iter ( iter:: once ( None ) . chain ( ( 1i32 ..=100_000 ) . map ( Some ) ) ) ;
241247
242- let btr = BtrBlocksCompressor :: default ( ) ;
248+ let btr = BtrBlocksCompressorBuilder :: default ( )
249+ . with_new_scheme ( & DELTA_SCHEME )
250+ . build ( ) ;
243251 let compressed = btr. compress ( & array. clone ( ) . into_array ( ) , & mut ctx) ?;
244252 assert ! (
245253 compressed. is:: <Delta >( ) ,
0 commit comments