(array: &Arc<dyn Array>)
| 1525 | /// very hot path and downcasting is relatively slow |
| 1526 | #[inline] |
| 1527 | fn downcast_array<T: 'static>(array: &Arc<dyn Array>) -> Result<&T, anyhow::Error> { |
| 1528 | array |
| 1529 | .as_any() |
| 1530 | .downcast_ref::<T>() |
| 1531 | .ok_or_else(|| anyhow!("expected {}, found {array:?}", std::any::type_name::<T>())) |
| 1532 | } |
| 1533 | |
| 1534 | /// Small helper function to downcast from an array to a [`DatumColumnDecoder`]. |
| 1535 | /// |
no test coverage detected