File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -514,8 +514,12 @@ pub fn new_empty_builder(data_type: &DataType, capacity: usize) -> Box<dyn Array
514
514
DataType :: Struct ( _fields) => todo ! ( ) ,
515
515
DataType :: Union ( _union_fields, _union_mode) => todo ! ( ) ,
516
516
DataType :: Dictionary ( _data_type, _data_type1) => todo ! ( ) ,
517
- DataType :: Decimal128 ( _, _) => Box :: new ( Decimal128Builder :: with_capacity ( capacity) ) as _ ,
518
- DataType :: Decimal256 ( _, _) => Box :: new ( Decimal256Builder :: with_capacity ( capacity) ) as _ ,
517
+ DataType :: Decimal128 ( precision, scale) => Box :: new (
518
+ Decimal128Builder :: with_capacity ( capacity) . with_precision_and_scale ( precision, scale) ,
519
+ ) as _ ,
520
+ DataType :: Decimal256 ( precision, scale) => Box :: new (
521
+ Decimal256Builder :: with_capacity ( capacity) . with_precision_and_scale ( precision, scale) ,
522
+ ) as _ ,
519
523
DataType :: Map ( _field, _) => todo ! ( ) ,
520
524
DataType :: RunEndEncoded ( _field, _field1) => todo ! ( ) ,
521
525
dt => panic ! ( "Unexpected data type {dt:?}" ) ,
You can’t perform that action at this time.
0 commit comments