tustvold commented on code in PR #3431:
URL: https://github.com/apache/arrow-rs/pull/3431#discussion_r1065847480


##########
parquet/src/arrow/arrow_writer/mod.rs:
##########
@@ -435,6 +444,15 @@ fn write_leaf(
                     let array: &[i64] = data.buffers()[0].typed_data();
                     write_primitive(typed, &array[offset..offset + 
data.len()], levels)?
                 }
+                ArrowDataType::Decimal128(_, _) => {
+                    // use the int32 to represent the decimal with low 
precision
+                    let array = column

Review Comment:
   You could consider using as_primitive_array here



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to