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

Method validate_data

arrow-data/src/data.rs:1310–1316  ·  view source on GitHub ↗

Validate that the data contained within this [`ArrayData`] is valid 1. Null count is correct 2. All offsets are valid 3. All String data is valid UTF-8 4. All dictionary offsets are valid Internally this calls: [`Self::validate`] [`Self::validate_nulls`] [`Self::validate_values`] Note: this does not recurse into children, for a recursive variant see [`Self::validate_full`]

(&self)

Source from the content-addressed store, hash-verified

1308 /// Note: this does not recurse into children, for a recursive variant
1309 /// see [`Self::validate_full`]
1310 pub fn validate_data(&self) -> Result<(), ArrowError> {
1311 self.validate()?;
1312
1313 self.validate_nulls()?;
1314 self.validate_values()?;
1315 Ok(())
1316 }
1317
1318 /// Performs a full recursive validation of this [`ArrayData`] and all its children
1319 ///

Callers 6

concat_run_arraysFunction · 0.80
try_newMethod · 0.80
new_uncheckedMethod · 0.80
try_newMethod · 0.80
validate_fullMethod · 0.80
buildMethod · 0.80

Calls 3

validate_nullsMethod · 0.80
validate_valuesMethod · 0.80
validateMethod · 0.45

Tested by

no test coverage detected