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
Legacy converted type (str or None).
Array length if fixed length byte array type, None otherwise (int or None).
Logical type of column (
ParquetLogicalType
).Maximum definition level (int).
Maximum repetition level (int).
Name of field (str).
Nested path to field, separated by periods (str).
Name of physical type (str).
Precision if decimal type, None otherwise (int or None).
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:
- other
ColumnSchema
Schema to compare against.
- other
- 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).