World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
title: "Iceberg Catalog" slug: "/lakehouse-iceberg-catalog" keywords: - lakehouse - iceberg - metadata license: "This software is licensed under the Apache License version 2."
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Introduction
Apache Gravitino provides the ability to manage Apache Iceberg metadata.
Requirements and Limitations
:::info
Builds with Apache Iceberg 1.11.0. The Apache Iceberg table format version is 2 by default.
:::
Flink and Spark clients may use a different Iceberg version than the server.
- Flink Iceberg catalog — client JAR requirements
- Spark Iceberg catalog — client JAR requirements
:::caution Mixing Iceberg JARs from different versions on the client classpath is not compatible and may cause runtime errors. :::
Catalog
Catalog Capabilities
- Works as a catalog proxy, supporting
Hive,JDBCandRESTas catalog backend. - Supports DDL operations for Iceberg schemas and tables.
- Doesn't support snapshot or table management operations.
- Supports multi storage, including S3, GCS, ADLS, OSS and HDFS.
- Supports Kerberos or simple authentication for warehouse storage access on HDFS for Hive and JDBC catalog backends.
- Supports table metadata cache.
Catalog Properties
| Property name | Description | Default value | Required |
|---|---|---|---|
catalog-backend |
Catalog backend of Gravitino Iceberg catalog. Supports hive or jdbc or rest. |
(none) | Yes |
uri |
The URI configuration of the Iceberg catalog. thrift://127.0.0.1:9083 or jdbc:postgresql://127.0.0.1:5432/db_name or jdbc:mysql://127.0.0.1:3306/metastore_db or http://127.0.0.1:9001/iceberg. |
(none) | Yes |
warehouse |
Warehouse location of catalog. Use a physical S3 or HDFS location for hive or jdbc catalog backend, use catalog name for REST catalog backend. |
(none) | Yes for hive and jdbc catalog backend |
catalog-backend-name |
The catalog name passed to underlying Iceberg catalog backend. Catalog name in JDBC backend is used to isolate namespace and tables. | The property value of catalog-backend, like jdbc for JDBC catalog backend. |
No |
Any property not defined by Gravitino with gravitino.bypass. prefix will pass to Iceberg catalog properties and HDFS configuration. For example, if specify gravitino.bypass.list-all-tables, list-all-tables will pass to Iceberg catalog properties.
If you are using the Gravitino with Trino, you can pass the Trino Iceberg connector configuration using prefix trino.bypass.. For example, using trino.bypass.iceberg.table-statistics-enabled to pass the iceberg.table-statistics-enabled to the Gravitino Iceberg catalog in Trino runtime.
If you are using the Gravitino with Spark, you can pass the Spark Iceberg connector configuration using prefix spark.bypass.. For example, using spark.bypass.io-impl to pass the io-impl to the Spark Iceberg connector in Spark runtime.
Identifier Case Behavior
For catalog-backend=hive, schema, table, and view identifiers are case-insensitive; you can use any casing.
For catalog-backend=rest, always use the same identifier casing that was used when the object was first registered. Loading the same object with different casing is rejected.
:::caution After upgrading, if loading an existing mixed-case object reports a retained identifier conflict, Gravitino does not support metadata-only unregister of an individual external object. Use this catalog-wide recovery procedure:
- Have an administrator force-drop the Gravitino catalog. This deletes every Gravitino registration and its privileges, tags, and other relationships in the catalog. It does not drop the Iceberg namespaces, tables, views, or physical data.
- Recreate the Gravitino catalog and load the objects again. Keep the existing
gravitino.identifierproperties; deleted registrations do not block new imports. - Reapply any privileges, tags, or other governance relationships that the new registrations need.
A source identifier can have only one active Gravitino registration. Coordinate with other Gravitino catalogs that share the external source before resetting a catalog. :::
JDBC Backend
If you are using JDBC backend, you must provide properties like jdbc-user, jdbc-password and jdbc-driver. Use jdbc-user and jdbc-password for the JDBC metadata store connection. When the warehouse is on Kerberos-secured HDFS, set authentication.type to kerberos and configure the Kerberos properties in Catalog Backend Security.
| Property name | Description | Default value | Required |
|---|---|---|---|
jdbc-user |
JDBC user name | (none) | Yes |
jdbc-password |
JDBC password | (none) | Yes |
jdbc-driver |
com.mysql.jdbc.Driver or com.mysql.cj.jdbc.Driver for MySQL, org.postgresql.Driver for PostgreSQL |
(none) | Yes |
jdbc-initialize |
Whether to initialize meta tables when create JDBC catalog | true |
No |
If you have a JDBC Iceberg catalog prior, you must set catalog-backend-name to keep consistent with your Jdbc Iceberg catalog name to operate the prior namespace and tables.
:::caution
Download the corresponding JDBC driver and place it to the catalogs/lakehouse-iceberg/libs directory If you are using JDBC backend.
If you are using multiple JDBC catalog backends, setting jdbc-initialize to true may not take effect for RDMS like Mysql, you should create Iceberg meta tables explicitly.
You can initialize the metadata tables using the scripts provided in the ${GRAVITINO_HOME}/scripts/ directory:
- MySQL:
${GRAVITINO_HOME}/scripts/mysql/iceberg-jdbc-schema-mysql.sql - PostgreSQL:
${GRAVITINO_HOME}/scripts/postgresql/iceberg-jdbc-schema-postgresql.sql - H2:
${GRAVITINO_HOME}/scripts/h2/iceberg-jdbc-schema-h2.sql
For example:
# MySQL
mysql -h <host> -u <username> -p <database> < ${GRAVITINO_HOME}/scripts/mysql/iceberg-jdbc-schema-mysql.sql
# PostgreSQL
psql -h <host> -U <username> -d <database> -f ${GRAVITINO_HOME}/scripts/postgresql/iceberg-jdbc-schema-postgresql.sql
When using H2, the JDBC connection URL must include ;DATABASE_TO_LOWER=TRUE (e.g., jdbc:h2:<path>;DATABASE_TO_LOWER=TRUE). By default, H2 converts unquoted identifiers to uppercase, whereas Iceberg looks up metadata in lowercase. Without DATABASE_TO_LOWER=TRUE, Iceberg fails to detect existing columns such as iceberg_type and attempts an ALTER TABLE, which fails if the database user only has DML permissions.
:::
REST Catalog Backend
For the REST catalog backend, warehouse identifies the catalog in the Iceberg REST spec. In the Gravitino Iceberg REST server, warehouse maps to the catalog name. An empty value means the default catalog.
The following properties tune REST backend behavior:
| Property name | Description | Default value | Required |
|---|---|---|---|
data-access |
Data access mode for REST catalog backend. Supported values are vended-credentials and remote-signing. |
(none) | No |
rest-client-connection-timeout-ms |
The HTTP connection timeout in milliseconds for requests to the REST catalog backend. | 10000 | No |
rest-client-socket-timeout-ms |
The HTTP socket timeout in milliseconds for requests to the REST catalog backend. | 60000 | No |
rest-backend-auth-type |
How the REST backend authenticates to the remote catalog: user-token forwards the calling user's token, service-account connects with rest-backend-token or rest-backend-credential and authorizes every request in Gravitino. |
user-token | No |
rest-backend-token |
Static bearer token for a service-account connection. Hidden from catalog responses. |
(none) | No |
rest-backend-credential |
OAuth2 client credential (client_id:client_secret) for a service-account connection. Hidden from catalog responses. |
(none) | No |
rest-backend-oauth2-server-uri |
OAuth2 token endpoint for rest-backend-credential. |
(none) | No |
rest-backend-scope |
OAuth2 scope requested with rest-backend-credential. |
(none) | No |
rest-backend-storage-credential-source |
Who issues storage credentials through the Iceberg REST service: remote passes through the remote catalog's credentials, local issues them through this catalog's credential-providers. A service-account connection always uses local, regardless of this setting. |
remote | No |
vended-credentials: request credential vending from the Iceberg REST server.remote-signing: Gravitino doesn't support this mode yet.
Example: create an Iceberg catalog with the REST backend. This targets the default catalog and uses a REST path like http://127.0.0.1:9001/iceberg/v1/namespaces/db/tables/table.
curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \
-d '{
"name": "iceberg_rest",
"type": "RELATIONAL",
"comment": "Iceberg REST catalog",
"provider": "lakehouse-iceberg",
"properties": {
"catalog-backend": "rest",
"uri": "http://localhost:9001/iceberg",
"rest-client-connection-timeout-ms": "10000",
"rest-client-socket-timeout-ms": "60000",
"data-access": "vended-credentials"
}
}' http://localhost:8090/api/metalakes/metalake/catalogs
To access a non-default catalog, set warehouse to the catalog name. This uses a REST path like http://127.0.0.1:9001/iceberg/v1/catalog/namespaces/db/tables/table. See Multi-Catalog Configuration for details.
S3
If io-impl is not configured, the Iceberg catalog uses
org.apache.iceberg.io.ResolvingFileIO, which selects a FileIO implementation based
on the URI scheme:
- S3:
s3,s3a, ors3n - OSS:
oss - GCS:
gsorgcs - ADLS:
abfs,abfss,wasb, orwasbs - To override the default, explicitly configure
io-impl. - Ensure that the corresponding storage bundle is available in the Iceberg catalog classpath.
Catalogs with a remote warehouse reject client-supplied local filesystem locations, including
file: URIs and paths without a scheme, with HTTP 400. This applies to table and view creation
(including staged table creation), registration, location updates, namespace locations, and the
write.metadata.path and write.data.path properties. An existing local namespace location is
also rejected when a create request inherits it. ResolvingFileIO still permits locations on
different remote storage systems, such as S3 and GCS, in the same catalog. Catalogs whose warehouse
is a local path or file: URI retain local filesystem support for development and testing.
With Iceberg REST authorization enabled, an explicit table location on create (including staged
create), registration, or a set-location commit requires load access to every existing table
whose location overlaps it. Equal, parent, and child directories overlap; names such as table
and table2 do not. Destination create and overwrite privileges are checked first, and denied
source checks return 403 without disclosing the source table's name. A default-location create
does not add a source scan. Filesystem dot segments and repeated separators are normalized for
comparison; object-store keys retain their literal path segments.
For JDBC backends, source discovery uses a single query of current metadata pointers and infers
locations from the standard <table-location>/metadata/<file> layout. This lookup does not read
other tables' metadata files and does not use a cross-request cache. Custom metadata layouts,
including arbitrary write.metadata.path values, are outside this lookup's supported layout.
Registration also preserves exact current metadata-pointer matching, including pointers outside
the standard layout. This identity check does not provide complete overlap detection for custom
layouts. Source discovery compares storage locations and metadata pointers rather than table
UUIDs; register-overwrite still preserves the destination table UUID. Backends without bulk
pointer lookup retain namespace discovery. Metadata read failures on that fallback path are
propagated; only tables proven to have disappeared are skipped. Database lookup failures are
also propagated, and destination authorization remains required.
Supports using static access-key-id and secret-access-key to access S3 data.
| Configuration item | Description | Default value | Required |
|---|---|---|---|
io-impl |
The IO implementation for FileIO in Iceberg. Set it to org.apache.iceberg.aws.s3.S3FileIO to explicitly use S3FileIO. |
org.apache.iceberg.io.ResolvingFileIO |
No |
s3-access-key-id |
The static access key ID used to access S3 data. | (none) | No |
s3-secret-access-key |
The static secret access key used to access S3 data. | (none) | No |
s3-endpoint |
An alternative endpoint of the S3 service, This could be used for S3FileIO with any s3-compatible object storage service that has a different endpoint, or access a private S3 endpoint in a virtual private cloud. | (none) | No |
s3-region |
The region of the S3 service, like us-west-2. |
(none) | No |
s3-path-style-access |
Whether to use path style access for S3. | false | No |
For other Iceberg s3 properties not managed by Gravitino like s3.sse.type, you could config it directly by gravitino.bypass.s3.sse.type.
:::info
- For the JDBC catalog backend, set the
warehouseparameter tos3://{bucket_name}/${prefix_name}. - For the Hive catalog backend, set
warehousetos3a://{bucket_name}/${prefix_name}. - Additionally, download the Gravitino Iceberg AWS bundle and place it in the
catalogs/lakehouse-iceberg/libs/directory. :::
:::note The Gravitino Iceberg AWS bundle jar already includes the Iceberg AWS bundle jar, no need to download and include it separately. :::
OSS
Gravitino Iceberg REST service supports using static access-key-id and secret-access-key to access OSS data.
| Configuration item | Description | Default value | Required |
|---|---|---|---|
io-impl |
The IO implementation for FileIO in Iceberg. Set it to org.apache.iceberg.aliyun.oss.OSSFileIO to explicitly use OSSFileIO. |
org.apache.iceberg.io.ResolvingFileIO |
No |
oss-access-key-id |
The static access key ID used to access OSS data. | (none) | No |
oss-secret-access-key |
The static secret access key used to access OSS data. | (none) | No |
oss-endpoint |
The endpoint of Aliyun OSS service. | (none) | No |
For other Iceberg OSS properties not managed by Gravitino like client.security-token, you could config it directly by gravitino.bypass.client.security-token.
See Catalog Properties Configuration for credential leakage risks when passing credentials or security tokens through gravitino.bypass. properties.
:::info
Please set the warehouse parameter to oss://{bucket_name}/${prefix_name}. Additionally, download the Gravitino Iceberg Aliyun bundle and place it in the catalogs/lakehouse-iceberg/libs/ directory.
:::
:::note The Gravitino Iceberg aliyun bundle jar already includes the Iceberg aliyun necessary dependency jars, no need to download and include them separately. :::
GCS
Supports using google credential file to access GCS data.
| Configuration item | Description | Default value | Required |
|---|---|---|---|
io-impl |
The IO implementation for FileIO in Iceberg. Set it to org.apache.iceberg.gcp.gcs.GCSFileIO to explicitly use GCSFileIO. |
org.apache.iceberg.io.ResolvingFileIO |
No |
gcs-service-account-file |
Path of the GCS service account JSON file. Used for server-side FileIO and for gcs-token credential vending. |
GCS Application default credential. | No |
For other Iceberg GCS properties not managed by Gravitino like gcs.project-id, you could config it directly by gravitino.bypass.gcs.project-id.
When gcs-service-account-file is set, Gravitino loads it at catalog initialization and injects Iceberg gcs.oauth2.token for FileIO (Iceberg's GCSFileIO has no service-account-file property). If that property is unset, fall back to Application Default Credentials, for example export GOOGLE_APPLICATION_CREDENTIALS=/xx/application_default_credentials.json.
:::info
Please set warehouse to gs://{bucket_name}/${prefix_name}, and download Gravitino Iceberg GCP bundle jar and place it to catalogs/lakehouse-iceberg/libs/.
:::
:::note The Gravitino Iceberg GCP bundle jar already includes the Iceberg GCP bundle jar, no need to download and include it separately. :::
ADLS
Supports using Azure account name and secret key to access ADLS data.
| Configuration item | Description | Default value | Required |
|---|---|---|---|
io-impl |
The IO implementation for FileIO in Iceberg. Set it to org.apache.iceberg.azure.adlsv2.ADLSFileIO to explicitly use ADLSFileIO. |
org.apache.iceberg.io.ResolvingFileIO |
No |
azure-storage-account-name |
The static storage account name used to access ADLS data. | (none) | No |
azure-storage-account-key |
The static storage account key used to access ADLS data. | (none) | No |
For other Iceberg ADLS properties not managed by Gravitino like adls.read.block-size-bytes, you could config it directly by gravitino.iceberg-rest.adls.read.block-size-bytes.
:::info
Please set warehouse to abfs[s]://{container-name}@{storage-account-name}.dfs.core.windows.net/{path}, and download the Gravitino Iceberg Azure bundle and place it to catalogs/lakehouse-iceberg/libs/.
:::
:::note The Gravitino Iceberg Azure bundle jar already includes the Iceberg Azure bundle jar, no need to download and include it separately. :::
Other Storage
For other storages that are not managed by Gravitino directly, you can manage them through custom catalog properties.
| Configuration item | Description | Default value | Required |
|---|---|---|---|
io-impl |
The IO implementation for FileIO in Iceberg. Use the fully qualified class name to override the default implementation. |
org.apache.iceberg.io.ResolvingFileIO |
No |
To pass custom properties such as security-token to your custom FileIO, you can directly configure it by gravitino.bypass.security-token. security-token will be included in the properties when the initialize method of FileIO is invoked.
See Catalog Properties Configuration for credential leakage risks when passing credentials or security tokens through gravitino.bypass. properties.
:::info
Please set the warehouse parameter to {storage_prefix}://{bucket_name}/${prefix_name}. Additionally, download corresponding jars in the catalogs/lakehouse-iceberg/libs/ directory.
:::
Catalog Backend Security
Users can use the following properties to configure warehouse storage security when needed. For example, if you are using a Hive or JDBC catalog backend with a Kerberos-secured HDFS warehouse, set authentication.type to kerberos and provide authentication.kerberos.principal and authentication.kerberos.keytab-uri. For JDBC backend, JDBC username/password authentication for the metadata store is configured separately via jdbc-user and jdbc-password.
| Property name | Description | Default value | Required |
|---|---|---|---|
authentication.type |
The authentication type for HDFS warehouse access. Supports kerberos and simple for Hive and JDBC catalog backends. |
simple |
No |
authentication.impersonation-enable |
Whether to enable impersonation for the Iceberg catalog. | false |
No |
hive.metastore.sasl.enabled |
Whether to enable SASL when connecting to a Kerberos Hive Metastore. This is a raw Hive configuration. | false |
No. Set to true in most cases when authentication.type is kerberos (some deployments use SSL instead, but that is rare). |
authentication.kerberos.principal |
The principal for Kerberos authentication. | (none) | Yes, if authentication.type is kerberos. |
authentication.kerberos.keytab-uri |
The URI of the keytab for Kerberos authentication. | (none) | Yes, if authentication.type is kerberos. |
authentication.kerberos.check-interval-sec |
The check interval of Kerberos credential for the Iceberg catalog. | 60 | No |
authentication.kerberos.keytab-fetch-timeout-sec |
The fetch timeout for retrieving Kerberos keytab from authentication.kerberos.keytab-uri. |
60 | No |
Table Metadata Cache
Gravitino features a pluggable cache system for updating or retrieving table metadata in the cache. It validates the location of table metadata against the catalog backend to ensure the correctness of cached data.
| Configuration item | Description | Default value | Required |
|---|---|---|---|
table-metadata-cache-impl |
The implementation of the table metadata cache. Set to empty string("") if catalog-backend is rest catalog, or custom catalog without the SupportsMetadataLocation interface. |
org.apache.gravitino.iceberg.common.cache.LocalTableMetadataCache |
No |
table-metadata-cache-capacity |
The capacity of the table metadata cache. | 1000 | No |
table-metadata-cache-expire-minutes |
The expiration time (in minutes) of the table metadata cache. | 60 | No |
Gravitino provides the build-in org.apache.gravitino.iceberg.common.cache.LocalTableMetadataCache to store the cached data in the memory. You could also implement your custom table metadata cache by implementing the org.apache.gravitino.iceberg.common.cache.TableMetadataCache interface.
Catalog Operations
Refer to Manage Catalogs and Schemas for more details.
:::note
Sensitive catalog properties such as jdbc-password and cloud credential keys are hidden from the default load catalog response (jdbc-user is returned in plaintext). Recover JDBC and cloud credential fields via the credential vending API (getCredentials). Other non-credential secrets (secret-manager URNs, declared hidden properties, undeclared sensitive-named keys) use getSecrets / GET .../objects/{type}/{fullName}/secrets.
:::
Schema
Schema Capabilities
- doesn't support cascade drop schema.
- supports hierarchical (multi-level) schemas, mapping each level to an Iceberg namespace level. See Hierarchical schema.
Schema Properties
You could put properties except comment.
Schema Operations
Refer to Manage Catalogs and Schemas for more details.
Hierarchical schema
The Iceberg catalog supports a hierarchical (multi-level) schema, where a schema can be nested under another schema, mapping each level to an Iceberg multi-level namespace.
A hierarchical schema name is a path whose levels are joined by the configured separator
gravitino.schema.separator (default :, see Gravitino server configuration).
For example, with the default separator the name a:b:c denotes a schema c nested under a:b,
which in turn is nested under a. The separator is only used at the API boundary; Gravitino stores
the name internally using a physical separator that never collides with user input.
To create a hierarchical schema, just supply its full hierarchical name. Any missing ancestor schemas are
created automatically, so creating a:b:c also creates a and a:b if they don't already exist.
The following example creates the schema a:b:c:
curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \
-H "Content-Type: application/json" -d '{
"name": "a:b:c",
"comment": "a hierarchical schema",
"properties": {}
}' http://localhost:8090/api/metalakes/metalake/catalogs/iceberg_catalog/schemas
// Assuming you have just created an Iceberg catalog named `iceberg_catalog`
Catalog catalog = gravitinoClient.loadCatalog("iceberg_catalog");
SupportsSchemas supportsSchemas = catalog.asSchemas();
// missing ancestors `a` and `a:b` are created automatically
Schema schema = supportsSchemas.createSchema("a:b:c", "a hierarchical schema", Collections.emptyMap());
gravitino_client: GravitinoClient = GravitinoClient(uri="http://127.0.0.1:8090", metalake_name="metalake")
catalog: Catalog = gravitino_client.load_catalog(name="iceberg_catalog")
# missing ancestors `a` and `a:b` are created automatically
catalog.as_schemas().create_schema(name="a:b:c", comment="a hierarchical schema", properties={})
To list the schemas directly under a parent schema, pass the parent schema name. Over REST this is
the optional parentSchema query parameter; in the clients it is an argument to the list-schemas
method. Given the schemas a, a:b and a:b:c, listing the children of a:b returns [a:b:c].
When the parent is omitted, only the top-level schemas under the catalog are returned (the direct
children of the catalog root, e.g. a), not the nested ones.
curl -X GET -H "Accept: application/vnd.gravitino.v1+json" \
-H "Content-Type: application/json" \
"http://localhost:8090/api/metalakes/metalake/catalogs/iceberg_catalog/schemas?parentSchema=a:b"
Catalog catalog = gravitinoClient.loadCatalog("iceberg_catalog");
SupportsSchemas supportsSchemas = catalog.asSchemas();
String[] children = supportsSchemas.listSchemas("a:b");
gravitino_client: GravitinoClient = GravitinoClient(uri="http://127.0.0.1:8090", metalake_name="metalake")
catalog: Catalog = gravitino_client.load_catalog(name="iceberg_catalog")
children: List[str] = catalog.as_schemas().list_schemas(parent_schema="a:b")
Table
Table Capabilities
For format-version 3 tables, Iceberg column defaults in table metadata are reported when the table is loaded:
Iceberg field Column field write-defaultdefaultValueinitial-defaultinitialDefaultValueIceberg
timestamptzdefaults are exposed as a UTCLocalDateTimewith Gravitino typetimestamp_tz. Clients should treat thoseLocalDateTimefields as UTC when recovering the instant.Setting column default values through the Gravitino API is not supported yet.
Table Partitions
Supports transforms:
IdentityTransformBucketTransformTruncateTransformYearTransformMonthTransformDayTransformHourTransform
:::info
Iceberg doesn't support multi fields in BucketTransform.
Iceberg doesn't support ApplyTransform, RangeTransform, and ListTransform.
:::
Table Sort Orders
supports expressions:
FieldReferenceFunctionExpressionbuckettruncateyearmonthdayhour
:::info
For bucket and truncate, the first argument must be integer literal, and the second argument must be field reference.
:::
Table Distributions
- Support
HashDistribution, which distribute data by partition key. - Support
RangeDistribution, which distribute data by partition key or sort key for a SortOrder table. - Doesn't support
EvenDistribution.
:::info
If you doesn't specify distribution expressions, the table distribution will be adjusted to RangeDistribution for a sort order table, to HashDistribution for a partition table.
:::
Table Column Types
| Gravitino Type | Apache Iceberg Type |
|---|---|
Struct |
Struct |
Map |
Map |
List |
Array |
Boolean |
Boolean |
Integer |
Integer |
Long |
Long |
Float |
Float |
Double |
Double |
String |
String |
Date |
Date |
Time(6) |
Time |
Timestamp(6) |
TimestampType withoutZone |
Timestamp_tz(6) |
TimestampType withZone |
Timestamp(9) |
TimestampNanoType withoutZone |
Timestamp_tz(9) |
TimestampNanoType withZone |
Decimal |
Decimal |
Fixed |
Fixed |
Binary |
Binary |
UUID |
UUID |
Variant |
Variant |
Null |
Unknown |
Geometry |
Geometry |
Geography |
Geography |
:::note
Gravitino Null maps to Apache Iceberg's V3 unknown type — a null-only placeholder for a column
whose type is not yet known. It requires table format-version 3, must be an optional (nullable)
column, and can be promoted to a concrete type via schema evolution. This is the recommended way to
represent an Iceberg unknown column in Gravitino.
:::
:::info
Apache Iceberg doesn't support Gravitino Varchar Fixedchar Byte Short Union type.
Meanwhile, the data types other than listed above are mapped to Gravitino External Type that represents an unresolvable data type.
:::
Table Properties
Pass Iceberg table properties to Gravitino when creating an Iceberg table.
:::note Reserved: Fields that cannot be passed to the Gravitino server.
Immutable: Fields that cannot be modified once set. :::
| Configuration item | Description | Default value | Required | Reserved | Immutable |
|---|---|---|---|---|---|
location |
Iceberg location for table storage. | (none) | No | No | Yes |
provider |
The storage provider for table storage. | (none) | No | No | Yes |
format |
The format of table storage. | (none) | No | No | Yes |
format-version |
The Iceberg table format version. Gravitino supports creating tables at versions 1–4 (the range the bundled Iceberg version can write) and defaults to 2 when unset. Version 3 is required for V3 types such as variant; version 4 is not yet a finalized Iceberg spec. |
2 |
No | No | Yes |
comment |
The table comment; use the comment field in table meta instead. |
(none) | No | Yes | No |
creator |
The table creator. | (none) | No | Yes | No |
current-snapshot-id |
The snapshot represents the current state of the table. | (none) | No | Yes | No |
default-spec-id |
The current default partition spec ID projected from Iceberg metadata. Read-only; cannot be set or removed. | (none) | No | Yes | No |
cherry-pick-snapshot-id |
Selecting a specific snapshot in a merge operation. | (none) | No | Yes | No |
sort-order |
Iceberg table sort order; use SortOrder in table meta instead. |
(none) | No | Yes | No |
identifier-fields |
The identifier fields for defining the table. | (none) | No | Yes | No |
write.distribution-mode |
Defines distribution of write data; use distribution in table meta instead. |
(none) | No | Yes | No |
Table Indexes
- Doesn't support table indexes.
Table Operations
Refer to Manage Relational Metadata Using Gravitino for more details.
Alter Table Operations
Supports operations:
RenameTableSetPropertyRemovePropertyUpdateCommentAddColumnDeleteColumnRenameColumnUpdateColumnTypeUpdateColumnPositionUpdateColumnNullabilityUpdateColumnComment
:::info
The default column position is LAST when you add a column. If you add a non nullability column, there may be compatibility issues.
:::
:::caution If you update a nullability column to non nullability, there may be compatibility issues. :::
View
View Capabilities
- Supports list, create, load, alter, and drop for views managed by the underlying Iceberg backend.
- Accepts any dialect name (e.g.
trino,spark,flink,hive). No restriction on which dialects are used. - Can preserve multiple SQL representations for the same logical view; the full set of representations round-trips through Gravitino.
defaultCataloganddefaultSchemaare stored and returned as-is by the backend.- View support depends on the Iceberg catalog backend: REST and Hive backends generally support views; JDBC backend support is in continuous validation.
:::note
Rename cannot be combined with other changes in a single alterView call. Submit rename as a standalone request.
:::
View Operations
Refer to Manage view metadata using Gravitino for more details.
HDFS Configuration
Place core-site.xml and hdfs-site.xml in the catalogs/lakehouse-iceberg/conf directory to automatically load as the default HDFS configuration.
:::info Builds with Hadoop 2.10.x, there may be compatibility issues when accessing Hadoop 3.x clusters. When writing to HDFS, the Gravitino Iceberg REST server can only operate as the specified HDFS user and doesn't support proxying to other HDFS users. See How to access Apache Hadoop for more details. :::