ndemir commented on issue #7287:
URL: https://github.com/apache/arrow-rs/issues/7287#issuecomment-2726039149

   
   Continued Investigation.
   
   In chrono library, date types are limited to about +/- 262,000 years. 
Source: [Limitations Section of 
Chrono](https://github.com/chronotope/chrono?tab=readme-ov-file#limitations) 
That seems to be the reason.
   
   Just to be clear, the underlying data is still there, print does not work if 
the number is not in the supported range.
   
   ```rs
   use arrow_array::{types::TimestampMicrosecondType, PrimitiveArray, 
TimestampMicrosecondArray};
   
   fn main() {
       let arr: PrimitiveArray<TimestampMicrosecondType> =
       TimestampMicrosecondArray::from(vec![9089380393200000000]);
   
       println!("{:?}", arr);
       println!("{:?}", arr.values());
   }
   
   ```
   
   ```stdout
   PrimitiveArray<Timestamp(Microsecond, None)>
   [
     null,
   ]
   ScalarBuffer([9089380393200000000])
   ```
   
   
   


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