Skip to content

Commit 39b3233

Browse files
ctskChristian
authored and
Christian
committed
Add decimal builders to RBB
1 parent 61779bd commit 39b3233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arrow-array/src/builder/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ pub fn new_empty_builder(data_type: &DataType, capacity: usize) -> Box<dyn Array
514514
DataType::Struct(_fields) => todo!(),
515515
DataType::Union(_union_fields, _union_mode) => todo!(),
516516
DataType::Dictionary(_data_type, _data_type1) => todo!(),
517-
DataType::Decimal128(_, _) => todo!(),
518-
DataType::Decimal256(_, _) => todo!(),
517+
DataType::Decimal128(_, _) => Box::new(Decimal128Builder::with_capacity(capacity)) as _,
518+
DataType::Decimal256(_, _) => Box::new(Decimal256Builder::with_capacity(capacity)) as _,
519519
DataType::Map(_field, _) => todo!(),
520520
DataType::RunEndEncoded(_field, _field1) => todo!(),
521521
dt => panic!("Unexpected data type {dt:?}"),

0 commit comments

Comments
 (0)