Package org.apache.gravitino.dto.rel
Class PartitionUtils
java.lang.Object
org.apache.gravitino.dto.rel.PartitionUtils
Utility class for partitioning validation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
validateFieldExistence
(ColumnDTO[] columns, String[] fieldName) Validates the existence of the partition field in the table.
-
Method Details
-
validateFieldExistence
public static void validateFieldExistence(ColumnDTO[] columns, String[] fieldName) throws IllegalArgumentException Validates the existence of the partition field in the table.- Parameters:
columns
- The columns of the table.fieldName
- The name of the field to validate.- Throws:
IllegalArgumentException
- If the field does not exist in the table, this exception is thrown.
-