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

   **Describe the bug**
   
   Attempting to convert a string with a valid timestamp with a large date in 
the ISO format (e.g., +10999-12-31T00:00:00) results in:
   
   Error parsing timestamp from '+10999-12-31T00:00:00': error parsing date
   
   **To Reproduce**
   
   ```rust
   #[test]
   fn test_cast_string_with_large_timestamp_to_timestamp() {
       let array = Arc::new(StringArray::from(vec![
           Some("+10999-12-31T00:00:00"),
       ])) as ArrayRef;
       let to_type = DataType::Timestamp(TimeUnit::Second, None);
       let options = CastOptions {
           safe: false,
           format_options: FormatOptions::default(),
       };
       let b = cast_with_options(&array, &to_type, &options).unwrap();
   }
   ```
   
   **Expected behavior**
   The cast succeeds.
   
   **Additional context**
   
   I think this issue is similar to 
https://github.com/apache/arrow-rs/issues/7073, but this one is for timestamps, 
whereas the other one affected dates.


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