(&self)
| 154 | |
| 155 | impl<T: Array + ?Sized> DowncastArrayHelper for T { |
| 156 | fn downcast_array_helper<U: Any>(&self) -> Result<&U> { |
| 157 | self.as_any().downcast_ref().ok_or_else(|| { |
| 158 | let actual_type = self.data_type(); |
| 159 | let desired_type_name = type_name::<U>(); |
| 160 | _internal_datafusion_err!( |
| 161 | "could not cast array of type {} to {}", |
| 162 | actual_type, |
| 163 | desired_type_name |
| 164 | ) |
| 165 | }) |
| 166 | } |
| 167 | } |
| 168 | } |
| 169 |
nothing calls this directly
no test coverage detected