gravitino.dto.rel.partition_utils.PartitionUtils¶
- class gravitino.dto.rel.partition_utils.PartitionUtils¶
Bases:
object
Validates the existence of the partition field in the table.
- __init__()¶
Methods
__init__
()validate_field_existence
(columns, field_name)Validates the existence of the partition field in the table.
- static validate_field_existence(columns: List[ColumnDTO], field_name: List[str]) None ¶
Validates the existence of the partition field in the table.
- Args:
columns (List[ColumnDTO]): The columns of the table. field_name (List[str]): The name of the field to validate.
- Raises:
- IllegalArgumentException:
If the field does not exist in the table, this exception is thrown.