Iceberg Table Properties
When creating or modifying an Iceberg table, you can use TBLPROPERTIES to set related properties.
Read Properties
| Property | Default Value | Description |
|---|---|---|
| read.split.target-size | 134217728 (128 MB) | Target size for combining data input splits |
| read.split.metadata-target-size | 33554432 (32 MB) | Target size for combining metadata input splits |
| read.split.planning-lookback | 10 | Number of bins to consider for combining input splits |
| read.split.open-file-cost | 4194304 (4 MB) | Estimated cost to open a file, used as a minimum weight for combining splits |
| read.parquet.vectorization.enabled | false | Whether Parquet vectorized reads are used |
| read.parquet.vectorization.batch-size | 5000 | Batch size for parquet vectorized reads |
| read.orc.vectorization.enabled | false | Whether ORC vectorized reads are used |
| read.orc.vectorization.batch-size | 5000 | Batch size for ORC vectorized reads |
Write Properties
| Property | Default Value | Description |
|---|---|---|
| write.format.default | parquet | Default file format for the table. Possible options can be parquet, avro, or orc. |
| write.delete.format.default | parquet (The value is the same as that of write.format.default by default.) | Default delete file format for the table. Possible options can be parquet, avro, or orc. |
| write.parquet.row-group-size-bytes | 134217728 (128 MB) | Parquet row group size |
| write.parquet.page-size-bytes | 1048576 (1 MB) | Parquet page size |
| write.parquet.page-row-limit | 20000 | Parquet page row limit |
| write.parquet.dict-size-bytes | 2097152 (2 MB) | Parquet dictionary page size |
| write.parquet.compression-codec | zstd | Parquet compression codec. Possible options can be zstd, lz4, gzip, snappy, or uncompressed. |
| write.parquet.compression-level | null | Parquet compression level |
| write.parquet.bloom-filter-enabled.column.col1 | - | Hint to parquet to write a Bloom filter for the column col1 |
| write.parquet.bloom-filter-max-bytes | 1048576 (1 MB) | Maximum number of bytes for a Bloom filter bitset |
| write.parquet.bloom-filter-fpp.column.col1 | 0.01 | False positive probability for a Bloom filter applied to col1. The value ranges from 0.0 to 1.0. |
| write.avro.compression-codec | gzip | Avro compression codec. Possible options can be gzip (deflate with 9 level), zstd, snappy, or uncompressed. |
| write.avro.compression-level | null | Avro compression level |
| write.orc.stripe-size-bytes | 67108864 (64 MB) | Default ORC stripe size, in bytes |
| write.orc.block-size-bytes | 268435456 (256 MB) | Default file system block size for ORC files |
| write.orc.compression-codec | zlib | ORC compression codec. Possible options can be zstd, lz4, lzo, zlib, snappy, or none. |
| write.orc.compression-strategy | speed | ORC compression strategy. Possible options can be speed and compression. |
| write.orc.bloom.filter.columns | - | Comma separated list of column names for which a Bloom filter must be created. |
| write.orc.bloom.filter.fpp | 0.05 | False positive probability for Bloom filter. The value ranges from 0.0 to 1.0. |
| write.location-provider.impl | null | Optional custom implementation for LocationProvider |
| write.metadata.compression-codec | none | Metadata compression codec. Possible options can be none or gzip. |
| write.metadata.metrics.max-inferred-column-defaults | 100 | Maximum number of columns for which metrics are collected. For tables with nested fields, the number of stored metrics may exceed the configured limit. |
| write.metadata.metrics.default | truncate(16) | Default metrics mode for all columns in the table. Possible options can be none, counts, truncate(length), or full. |
| write.metadata.metrics.column.col1 | - | Metrics mode for the column col1 to allow per-column tuning. Possible options can be none, counts, truncate(length), or full. |
| write.target-file-size-bytes | 536870912 (512 MB) | Target size of generated files, in bytes |
| write.delete.target-file-size-bytes | 67108864 (64 MB) | Target size of delete files generated, in bytes |
| write.distribution-mode | none (The default value varies depending on the engine.) | Distribution of write data. Possible options are as follows:
|
| write.delete.distribution-mode | hash | Distribution of write delete data |
| write.update.distribution-mode | hash | Distribution of write update data |
| write.merge.distribution-mode | none | Distribution of write merge data |
| write.wap.enabled | false | Whether to enable write-audit-publish writes |
| write.summary.partition-limit | 0 | Number of partitions that are changed, below which partition-level summary stats are included in the snapshot summaries. |
| write.metadata.delete-after-commit.enabled | false | Whether to delete the oldest tracked version metadata files after each table commit |
| write.metadata.previous-versions-max | 100 | Maximum number of previous version metadata files to track. Excess files will be deleted. |
| write.object-storage.enabled | false | Whether to enable the object storage location provider that adds a hash component to file paths |
| write.object-storage.partitioned-paths | true | Whether to include the partition values in the file path during data writes to object storage |
| write.data.path | Table location + /data | Base location for data files |
| write.metadata.path | Table location + /metadata | Base location for metadata files |
| write.delete.mode | copy-on-write | Mode used by delete commands. Possible options can be copy-on-write or merge-on-read (supported by v2 and v3). |
| write.delete.isolation-level | serializable | Isolation level for delete commands. Possible options can be serializable or snapshot. |
| write.update.mode | copy-on-write | Mode used by update commands. Possible options can be copy-on-write or merge-on-read (supported by v2 and v3). |
| write.update.isolation-level | serializable | Isolation level for update commands. Possible options can be serializable or snapshot. |
| write.merge.mode | copy-on-write | Mode used by merge commands. Possible options can be copy-on-write or merge-on-read (supported by v2 and v3). |
| write.merge.isolation-level | serializable | Isolation level for merge commands. Possible options can be serializable or snapshot. |
Table Behavior Properties
| Property | Default Value | Description |
|---|---|---|
| commit.retry.num-retries | 4 | Number of times to retry a commit before failing |
| commit.retry.min-wait-ms | 100 | Minimum time in milliseconds to wait before retrying a commit |
| commit.retry.max-wait-ms | 60000 (1 min) | Maximum time in milliseconds to wait before retrying a commit |
| commit.retry.total-timeout-ms | 1800000 (30 min) | Total retry timeout period in milliseconds for a commit |
| commit.status-check.num-retries | 3 | Number of times to check whether a commit succeeded after a connection is lost before failing due to an unknown commit state |
| commit.status-check.min-wait-ms | 1000 (1s) | Minimum time in milliseconds to wait before retrying a status-check |
| commit.status-check.max-wait-ms | 60000 (1 min) | Maximum time in milliseconds to wait before retrying a status-check |
| commit.status-check.total-timeout-ms | 1800000 (30 min) | Total timeout period in which the commit status-check must succeed, in milliseconds |
| commit.manifest.target-size-bytes | 8388608 (8 MB) | Target size for merging manifest files |
| commit.manifest.min-count-to-merge | 100 | Minimum number of manifests to accumulate before merging |
| commit.manifest-merge.enabled | true | Whether to automatically merge manifests on writes |
| history.expire.max-snapshot-age-ms | 432000000 (5 days) | Default maximum age of snapshots to keep on the table and all of its branches while expiring snapshots |
| history.expire.min-snapshots-to-keep | 1 | Default minimum number of snapshots to keep on the table and all of its branches while expiring snapshots |
| history.expire.max-ref-age-ms | Long.MAX_VALUE (forever) | Default maximum age of snapshot references to keep while expiring snapshots, except for the main branch, which never expires |
Others
| Property | Default Value | Description |
|---|---|---|
| format-version | 2 | Metadata format version, which determines the functions and write capabilities supported by the table
|
| compatibility.snapshot-id-inheritance.enabled | false | Whether to allow a snapshot to be committed when the snapshot ID is not specified. If the value of format-version is greater than 1, this configuration takes effect forcibly. |
| write.spark.fanout.enabled | false | Whether to enable the fanout writer in Spark. Enabling the fanout writer does not require data clustering but requires more memory. This is a Spark-specific parameter. |
| write.spark.accept-any-schema | false | Whether to allow the data schema to be different from the table schema when Spark writes data. If this parameter is set to true, the system automatically supports field addition and sequence adjustment. This is a Spark-specific parameter. |
| spark.sql.native-read | false | Whether to enable Iceberg Native read. This is a Spark-specific parameter. |
| spark.sql.native-write | false | Whether to enable Iceberg Native write. This is a Spark-specific parameter. |
| checkencoding | low | The UTF-8 encoding verification behavior during string reading. The options are as follows: The value no indicates that the encoding verification is not performed. The value low indicates that the encoding verification is performed and invalid characters are replaced. The value high indicates that the encoding verification is performed and an error is reported when there are invalid characters. This is an Aura-specific parameter. |
Catalog Properties
| Property | Default Value | Description |
|---|---|---|
| catalog-impl | org.apache.iceberg.lakeformation.LakeFormationCatalog | Custom catalog implementation class used by the compute engine |
| io-impl | null | Custom file I/O implementation class used by the catalog |
| warehouse | null | Root path of the data warehouse |
| uri | null | Uniform resource identifier, for example, the address of the Hive metadata service |
| clients | 2 | Size of the client connection pool |
| cache-enabled | true | Whether to enable catalog entry caching |
| cache.expiration-interval-ms | 30000 | Time to live (TTL) of the locally cached catalog entries, in milliseconds. The value 0 indicates that the cache is disabled, and a negative value indicates permanent cache. |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot