OpenMS
Loading...
Searching...
No Matches
OpenMS::ArrowSchemaValidation Namespace Reference

Utilities for validating Arrow table schemas against expected definitions. More...

Classes

struct  ValidationResult
 Result of schema validation containing validity flag and error messages. More...
 

Enumerations

enum class  Mode { Strict , Subset }
 Validation strictness: Strict requires exact match, Subset allows missing and extra columns. More...
 

Functions

ValidationResult validate (const std::shared_ptr< arrow::Table > &table, const std::shared_ptr< arrow::Schema > &expected_schema, Mode mode=Mode::Strict)
 Validate an Arrow table's schema against an expected schema.
 

Detailed Description

Utilities for validating Arrow table schemas against expected definitions.

Enumeration Type Documentation

◆ Mode

enum class Mode
strong

Validation strictness: Strict requires exact match, Subset allows missing and extra columns.

Enumerator
Strict 
Subset 

Function Documentation

◆ validate()

ValidationResult validate ( const std::shared_ptr< arrow::Table > &  table,
const std::shared_ptr< arrow::Schema > &  expected_schema,
Mode  mode = Mode::Strict 
)

Validate an Arrow table's schema against an expected schema.