Performs a full recursive validation of this [`ArrayData`] and all its children This is equivalent to calling [`Self::validate_data`] on this [`ArrayData`] and all its children recursively
(&self)
| 1320 | /// This is equivalent to calling [`Self::validate_data`] on this [`ArrayData`] |
| 1321 | /// and all its children recursively |
| 1322 | pub fn validate_full(&self) -> Result<(), ArrowError> { |
| 1323 | self.validate_data()?; |
| 1324 | // validate all children recursively |
| 1325 | self.child_data |
| 1326 | .iter() |
| 1327 | .enumerate() |
| 1328 | .try_for_each(|(i, child_data)| { |
| 1329 | child_data.validate_full().map_err(|e| { |
| 1330 | ArrowError::InvalidArgumentError(format!( |
| 1331 | "{} child #{} invalid: {}", |
| 1332 | self.data_type, i, e |
| 1333 | )) |
| 1334 | }) |
| 1335 | })?; |
| 1336 | Ok(()) |
| 1337 | } |
| 1338 | |
| 1339 | /// Validates the values stored within this [`ArrayData`] are valid |
| 1340 | /// without recursing into child [`ArrayData`] |