pyarrow.parquet.ColumnSchema

class pyarrow.parquet.ColumnSchema

Bases: _Weakrefable

Schema for a single column.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

equals(self, ColumnSchema other)

Return whether the two column schemas are equal.

Attributes

converted_type

Legacy converted type (str or None).

length

Array length if fixed length byte array type, None otherwise (int or None).

logical_type

Logical type of column (ParquetLogicalType).

max_definition_level

Maximum definition level (int).

max_repetition_level

Maximum repetition level (int).

name

Name of field (str).

path

Nested path to field, separated by periods (str).

physical_type

Name of physical type (str).

precision

Precision if decimal type, None otherwise (int or None).

scale

Scale if decimal type, None otherwise (int or None).

converted_type

Legacy converted type (str or None).

equals(self, ColumnSchema other)

Return whether the two column schemas are equal.

Parameters:
otherColumnSchema

Schema to compare against.

Returns:
are_equalbool
length

Array length if fixed length byte array type, None otherwise (int or None).

logical_type

Logical type of column (ParquetLogicalType).

max_definition_level

Maximum definition level (int).

max_repetition_level

Maximum repetition level (int).

name

Name of field (str).

path

Nested path to field, separated by periods (str).

physical_type

Name of physical type (str).

precision

Precision if decimal type, None otherwise (int or None).

scale

Scale if decimal type, None otherwise (int or None).