File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
vortex-python/src/arrays/py Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use pyo3::{Python, intern};
1010use vortex:: buffer:: ByteBuffer ;
1111use vortex:: compute:: { ComputeFn , InvocationArgs , Output } ;
1212use vortex:: dtype:: DType ;
13- use vortex:: error:: { VortexResult , vortex_bail , vortex_err} ;
13+ use vortex:: error:: { VortexResult , vortex_err} ;
1414use vortex:: mask:: Mask ;
1515use vortex:: scalar:: Scalar ;
1616use vortex:: serde:: ArrayChildren ;
@@ -55,7 +55,7 @@ impl VTable for PythonVTable {
5555 let obj = array. object . bind ( py) ;
5656 if !obj. hasattr ( intern ! ( py, "metadata" ) ) ? {
5757 // The class does not have a metadata attribute so does not support serialization.
58- return Ok ( None ) ;
58+ return Ok ( RawMetadata ( vec ! [ ] ) ) ;
5959 }
6060
6161 let bytes = obj
@@ -65,7 +65,7 @@ impl VTable for PythonVTable {
6565 . as_bytes ( )
6666 . to_vec ( ) ;
6767
68- Ok ( Some ( RawMetadata ( bytes) ) )
68+ Ok ( RawMetadata ( bytes) )
6969 } )
7070 }
7171
You can’t perform that action at this time.
0 commit comments