Skip to content

Commit a75178c

Browse files
committed
chore[vortex-array]: remove SerdeVTable
Signed-off-by: Joe Isaacs <[email protected]>
1 parent 4d780ea commit a75178c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vortex-python/src/arrays/py/vtable.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use pyo3::{Python, intern};
1010
use vortex::buffer::ByteBuffer;
1111
use vortex::compute::{ComputeFn, InvocationArgs, Output};
1212
use vortex::dtype::DType;
13-
use vortex::error::{VortexResult, vortex_bail, vortex_err};
13+
use vortex::error::{VortexResult, vortex_err};
1414
use vortex::mask::Mask;
1515
use vortex::scalar::Scalar;
1616
use 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

0 commit comments

Comments
 (0)