MCPcopy Create free account
hub / github.com/apache/arrow-rs / validate_full

Method validate_full

arrow-data/src/data.rs:1322–1337  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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`]

Callers 15

test_decimal_validationFunction · 0.80
test_extend_nullsFunction · 0.80
test_string_viewFunction · 0.80
test_engineFunction · 0.80
test_cast_invalid_utf8Function · 0.80
test_structFunction · 0.80
test_single_listFunction · 0.80
test_nested_listFunction · 0.80

Calls 2

validate_dataMethod · 0.80
iterMethod · 0.45

Tested by 15

test_decimal_validationFunction · 0.64
test_extend_nullsFunction · 0.64
test_string_viewFunction · 0.64
test_engineFunction · 0.64
test_cast_invalid_utf8Function · 0.64
test_structFunction · 0.64
test_single_listFunction · 0.64
test_nested_listFunction · 0.64