polars_parquet_format::thrift::protocol

Function field_id

Source
pub fn field_id(field_ident: &TFieldIdentifier) -> Result<i16>
Expand description

Extract the field id from a Thrift field identifier.

field_ident must not have TFieldIdentifier.field_type of type TType::Stop.

Return TFieldIdentifier.id if an id exists, Err otherwise.