alamb commented on code in PR #4420:
URL: https://github.com/apache/arrow-rs/pull/4420#discussion_r1238663197


##########
arrow-json/src/reader/schema.rs:
##########
@@ -476,6 +487,10 @@ fn collect_field_types_from_object(
 /// Infer the fields of a JSON file by reading all items from the JSON Value 
Iterator.
 ///
 /// The following type coercion logic is implemented:
+/// * Unsigned integer are converted to `UInt64`
+/// * Signed integer are converted to `Int64`
+/// * `Int64` and `UInt64` are converted to `Int64`

Review Comment:
   I thought this PR changed it so that unsigned ints are inferred to be 
`UInt64` 🤔 



##########
arrow-json/src/reader/schema.rs:
##########
@@ -476,6 +487,10 @@ fn collect_field_types_from_object(
 /// Infer the fields of a JSON file by reading all items from the JSON Value 
Iterator.
 ///
 /// The following type coercion logic is implemented:
+/// * Unsigned integer are converted to `UInt64`
+/// * Signed integer are converted to `Int64`

Review Comment:
   ```suggestion
   /// * Signed integer smaller than 64 bits are converted to `Int64`
   ```



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