Class PartitionUtils

java.lang.Object
org.apache.gravitino.dto.rel.PartitionUtils

public class PartitionUtils extends Object
Utility class for partitioning validation.
  • 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.