@@ -246,13 +246,13 @@ mod tests {
246246 use vortex_array:: IntoArray ;
247247 use vortex_array:: Precision ;
248248 use vortex_array:: arrays:: VarBinViewArray ;
249- use vortex_array:: arrays:: Variant ;
250249 use vortex_array:: arrays:: VariantArray ;
251250 use vortex_array:: dtype:: DType ;
252251 use vortex_array:: dtype:: Nullability ;
253252 use vortex_array:: dtype:: PType ;
254253 use vortex_array:: serde:: SerializeOptions ;
255254 use vortex_array:: serde:: SerializedArray ;
255+ use vortex_array:: session:: ArraySession ;
256256 use vortex_array:: session:: ArraySessionExt ;
257257 use vortex_array:: validity:: Validity ;
258258 use vortex_buffer:: BitBuffer ;
@@ -263,11 +263,14 @@ mod tests {
263263
264264 use crate :: ParquetVariant ;
265265 use crate :: array:: ParquetVariantArrayExt ;
266+
266267 fn roundtrip ( array : ArrayRef ) -> ArrayRef {
267268 let dtype = array. dtype ( ) . clone ( ) ;
268269 let len = array. len ( ) ;
269270
270- let session = VortexSession :: empty ( ) . with :: < vortex_array:: session:: ArraySession > ( ) ;
271+ let session = VortexSession :: empty ( ) . with :: < ArraySession > ( ) ;
272+ session. arrays ( ) . register ( ParquetVariant ) ;
273+
271274 let ctx = ArrayContext :: empty ( ) ;
272275 let serialized = array
273276 . serialize ( & ctx, & session, & SerializeOptions :: default ( ) )
@@ -278,8 +281,6 @@ mod tests {
278281 concat. extend_from_slice ( buf. as_ref ( ) ) ;
279282 }
280283 let concat = concat. freeze ( ) ;
281- session. arrays ( ) . register ( ParquetVariant ) ;
282- session. arrays ( ) . register ( Variant ) ;
283284
284285 let parts = SerializedArray :: try_from ( concat) . unwrap ( ) ;
285286 parts
0 commit comments