We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
VectorMut::with_capacity
1 parent a485f5e commit a64c7aeCopy full SHA for a64c7ae
vortex-vector/src/vector_mut.rs
@@ -66,9 +66,10 @@ impl VectorMut {
66
DType::Decimal(decimal_dtype, _) => {
67
DecimalVectorMut::with_capacity(decimal_dtype, capacity).into()
68
}
69
- DType::Utf8(_) | DType::Binary(_) | DType::List(..) | DType::Extension(_) => {
70
- vortex_panic!("Unsupported dtype for VectorMut")
71
- }
+ DType::Utf8(..) => StringVectorMut::with_capacity(capacity).into(),
+ DType::Binary(..) => BinaryVectorMut::with_capacity(capacity).into(),
+ DType::Extension(ext) => VectorMut::with_capacity(ext.storage_dtype(), capacity),
72
+ DType::List(..) => todo!("vector mut with capacity"),
73
74
75
0 commit comments