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

   **Describe the bug**
   <!--
   A clear and concise description of what the bug is.
   -->
   Related to https://github.com/apache/arrow-datafusion/issues/4644
   Postgresql and datafusion support to cast date32 to timestamp, however its 
not yet covered by arrow-rs
   
   **To Reproduce**
   <!--
   Steps to reproduce the behavior:
   -->
   ```
       #[test]
       fn test_cast_date32_to_timestamp() {
           let a = Date32Array::from(vec![10000, 17890]);
           let array = Arc::new(a) as ArrayRef;
           let b = cast(&array, &DataType::Timestamp(TimeUnit::Nanosecond, 
None)).unwrap();
           let c = 
b.as_any().downcast_ref::<TimestampNanosecondArray>().unwrap();
       }
   
   thread 'cast::tests::test_cast_date32_to_timestamp' panicked at 'called 
`Result::unwrap()` on an `Err` value: CastError("Casting from Date32 to 
Timestamp(Nanosecond, None) not supported")', arrow-cast/src/cast.rs:7701:80
   ```
   
   **Expected behavior**
   Cast should work
   **Additional context**
   <!--
   Add any other context about the problem here.
   -->


-- 
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: github-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to