@@ -244,13 +244,13 @@ mod tests {
244244 use vortex_array:: IntoArray ;
245245 use vortex_array:: Precision ;
246246 use vortex_array:: arrays:: VarBinViewArray ;
247- use vortex_array:: arrays:: Variant ;
248247 use vortex_array:: arrays:: VariantArray ;
249248 use vortex_array:: dtype:: DType ;
250249 use vortex_array:: dtype:: Nullability ;
251250 use vortex_array:: dtype:: PType ;
252251 use vortex_array:: serde:: SerializeOptions ;
253252 use vortex_array:: serde:: SerializedArray ;
253+ use vortex_array:: session:: ArraySession ;
254254 use vortex_array:: session:: ArraySessionExt ;
255255 use vortex_array:: validity:: Validity ;
256256 use vortex_buffer:: BitBuffer ;
@@ -261,11 +261,14 @@ mod tests {
261261
262262 use crate :: ParquetVariant ;
263263 use crate :: array:: ParquetVariantArrayExt ;
264+
264265 fn roundtrip ( array : ArrayRef ) -> ArrayRef {
265266 let dtype = array. dtype ( ) . clone ( ) ;
266267 let len = array. len ( ) ;
267268
268- let session = VortexSession :: empty ( ) . with :: < vortex_array:: session:: ArraySession > ( ) ;
269+ let session = VortexSession :: empty ( ) . with :: < ArraySession > ( ) ;
270+ session. arrays ( ) . register ( ParquetVariant ) ;
271+
269272 let ctx = ArrayContext :: empty ( ) ;
270273 let serialized = array
271274 . serialize ( & ctx, & session, & SerializeOptions :: default ( ) )
@@ -276,8 +279,6 @@ mod tests {
276279 concat. extend_from_slice ( buf. as_ref ( ) ) ;
277280 }
278281 let concat = concat. freeze ( ) ;
279- session. arrays ( ) . register ( ParquetVariant ) ;
280- session. arrays ( ) . register ( Variant ) ;
281282
282283 let parts = SerializedArray :: try_from ( concat) . unwrap ( ) ;
283284 parts
0 commit comments