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.
1 parent 61779bd commit 39b3233Copy full SHA for 39b3233
arrow-array/src/builder/mod.rs
@@ -514,8 +514,8 @@ pub fn new_empty_builder(data_type: &DataType, capacity: usize) -> Box<dyn Array
514
DataType::Struct(_fields) => todo!(),
515
DataType::Union(_union_fields, _union_mode) => todo!(),
516
DataType::Dictionary(_data_type, _data_type1) => todo!(),
517
- DataType::Decimal128(_, _) => todo!(),
518
- DataType::Decimal256(_, _) => todo!(),
+ DataType::Decimal128(_, _) => Box::new(Decimal128Builder::with_capacity(capacity)) as _,
+ DataType::Decimal256(_, _) => Box::new(Decimal256Builder::with_capacity(capacity)) as _,
519
DataType::Map(_field, _) => todo!(),
520
DataType::RunEndEncoded(_field, _field1) => todo!(),
521
dt => panic!("Unexpected data type {dt:?}"),
0 commit comments