Blajda opened a new issue, #5038:
URL: https://github.com/apache/arrow-rs/issues/5038

   **Describe the bug**
   Serializing and writing a json Number `Number(1699148028689)` to parquet 
using `arrow_json` the value is not preserved.
   When the value is read back from the parquet file, we obtain `-1659020527`.
   
   
   **To Reproduce**
   ```rust
       #[test]
       fn test_serde_field() {
           let field = Field::new("int", DataType::Int64, true);
           let mut decoder = ReaderBuilder::new_with_field(field)
               .build_decoder()
               .unwrap();
           decoder.serialize(&[1699148028689_u64, 2, 3, 4]).unwrap();
           let b = decoder.flush().unwrap().unwrap();
           let values = b.column(0).as_primitive::<Int64Type>().values();
           assert_eq!(values, &[1699148028689, 2, 3, 4]);
       }
   ```
   


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