Class EntityNameValidator

java.lang.Object
org.apache.polaris.service.catalog.validation.EntityNameValidator

public final class EntityNameValidator extends Object
Validates entity names provided by clients at the REST layer (tables, views, namespaces, generic tables, ...). A valid name:
  • is not null or empty;
  • is not . or ..;
  • does not contain ISO control characters (U+0000–U+001F or U+007F–U+009F);
  • does not contain any of: / \ : * ? " < > | # + `;
  • does not start or end with whitespace.
  • Method Details

    • validateName

      public static void validateName(String name)
      Validates a single entity name (table, view, namespace level, ...).
    • validateNamespace

      public static void validateNamespace(org.apache.iceberg.catalog.Namespace namespace)
      Validates each level of a namespace.
    • validateIdentifier

      public static void validateIdentifier(org.apache.iceberg.catalog.TableIdentifier identifier)