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

   In DataFusion we found that this panics, despite the value being well within 
the range of an i64:
   
   ```rust
   Literal::new(ScalarValue::Date64(Some(-790179464505600000)))
   ```
   
   Internally it calls `Date64::to_naive_date(Some(-790179464505600000))` which 
ends up hitting this panic:
   
   
https://github.com/chronotope/chrono/blob/bab97905ccfa5aa7ceae1ee131b41b7113ea4f6a/src/naive/date/mod.rs#L1876-L1877
   
   I believe we should call `NaiveDate::checked_add_signed` and propagate the 
opt everywhere.
   
   DataFusion will have to decide what it does with that.


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