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

   **Describe the bug**
   <!--
   A clear and concise description of what the bug is.
   -->
   
   Creating a `PrimitiveArray` from `ArrayData` validates that the `DataType` 
has the same discriminant as expected. For almost all types this is sufficient, 
with exception to `DataType::Interval`.
   
   This is because `DataType::Interval` has a different backing primitive 
depending on the value of `IntervalUnit`
   
   **To Reproduce**
   <!--
   Steps to reproduce the behavior:
   -->
   
   ```
   #[test]
   fn test_invalid_interval_type() {
       let array = IntervalDayTimeArray::from(vec![1, 2, 3]);
       let _ = IntervalMonthDayNanoArray::from(array.into_data());
   }
   ```
   
   The above should panic, but doesn't
   
   **Expected behavior**
   <!--
   A clear and concise description of what you expected to happen.
   -->
   
   
   **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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to