Jefffrey commented on code in PR #11544:
URL: https://github.com/apache/arrow-rs/pull/11544#discussion_r4267576411


##########
parquet/src/arrow/schema/mod.rs:
##########
@@ -977,6 +977,49 @@ mod tests {
         assert_eq!(&arrow_fields, converted_arrow_schema.fields());
     }
 
+    #[test]
+    fn test_decimal_precision_physical_types() {
+        let cases = [
+            (1, PhysicalType::INT32, None),
+            (9, PhysicalType::INT32, None),
+            (10, PhysicalType::INT64, None),
+            (18, PhysicalType::INT64, None),
+            (
+                19,
+                PhysicalType::FIXED_LEN_BYTE_ARRAY,
+                Some(decimal_length_from_precision(19) as i32),

Review Comment:
   might be better to explicit put the expected length here, instead of using 
the same code we're testing to calculate it



-- 
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