Skip to main content

validate_file_type_fields

Function validate_file_type_fields 

Source
fn validate_file_type_fields(name: &str, fields: &[TypePtr]) -> Result<()>
Expand description

Validates the fields of a FILE-annotated group against the Parquet specification.

A FILE group annotates a reference to a range of bytes. Every field is optional both in the schema and in the data: a writer may omit any field from the group definition, and any field that is present must have a field repetition type of OPTIONAL. The recognized fields (identified by name) and their expected physical/logical types are:

FieldPhysical typeLogical type
uriBYTE_ARRAYSTRING
offsetINT64
sizeINT64
content_typeBYTE_ARRAYSTRING
checksumBYTE_ARRAYSTRING
inlineBYTE_ARRAY