viirya commented on code in PR #3438:
URL: https://github.com/apache/arrow-rs/pull/3438#discussion_r1066168562


##########
arrow-array/src/builder/struct_builder.rs:
##########
@@ -115,9 +115,10 @@ pub fn make_builder(datatype: &DataType, capacity: usize) 
-> Box<dyn ArrayBuilde
         DataType::FixedSizeBinary(len) => {
             Box::new(FixedSizeBinaryBuilder::with_capacity(capacity, *len))
         }
-        DataType::Decimal128(_precision, _scale) => {
-            Box::new(Decimal128Builder::with_capacity(capacity))
-        }
+        DataType::Decimal128(p, s) => Box::new(
+            Decimal128Builder::with_capacity(capacity)
+                .with_data_type(DataType::Decimal128(*p, *s)),
+        ),

Review Comment:
   👍 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to