public enum TableCatalogCapability extends Enum<TableCatalogCapability>
TableCatalog implementation.| 枚举常量和说明 |
|---|
SUPPORT_COLUMN_DEFAULT_VALUE
Signals that the TableCatalog supports defining column default value as expression in
CREATE/REPLACE/ALTER TABLE.
|
SUPPORTS_CREATE_TABLE_WITH_GENERATED_COLUMNS
Signals that the TableCatalog supports defining generated columns upon table creation in SQL.
|
public static final TableCatalogCapability SUPPORTS_CREATE_TABLE_WITH_GENERATED_COLUMNS
Without this capability, any create/replace table statements with a generated column defined in the table schema will throw an exception during analysis.
A generated column is defined with syntax: colName colType GENERATED ALWAYS AS
(expr)
Generation expression are included in the column definition for APIs like TableCatalog.createTable(org.apache.spark.sql.connector.catalog.Identifier, org.apache.spark.sql.types.StructType, org.apache.spark.sql.connector.expressions.Transform[], java.util.Map<java.lang.String, java.lang.String>).
public static final TableCatalogCapability SUPPORT_COLUMN_DEFAULT_VALUE
Without this capability, any CREATE/REPLACE/ALTER TABLE statement with a column default value defined in the table schema will throw an exception during analysis.
A column default value is defined with syntax: colName colType DEFAULT expr
Column default value expression is included in the column definition for APIs like TableCatalog.createTable(org.apache.spark.sql.connector.catalog.Identifier, org.apache.spark.sql.types.StructType, org.apache.spark.sql.connector.expressions.Transform[], java.util.Map<java.lang.String, java.lang.String>).
public static TableCatalogCapability[] values()
for (TableCatalogCapability c : TableCatalogCapability.values()) System.out.println(c);
public static TableCatalogCapability valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.