Iceberg tables include a key-value map of table properties in their metadata. The initial map of table properties is set at table creation, and can be modified subsequently using ALTER TABLE ... SET TBLPROPERTIES. The Iceberg specification reserves a set of key properties and Foundry also provides a set of keys that are used to track Foundry-specific metadata, such as table RIDs.
Foundry-specific properties include:
| Property | Description | User edits |
|---|---|---|
created-at | Table creation timestamp (cross-catalog convention) | ✅ Allowed |
foundry.branch.* | Track branch-scoped schema, partition spec, and sort order | ❌ Disallowed |
foundry.rid | The table's RID | ❌ Disallowed |
foundry.table-version | Internal catalog marker | ❌ Disallowed |
foundry.table-status | Marks tables that are migrating to Iceberg | ❌ Disallowed |
When Foundry migrates a dataset to Iceberg, it sets foundry.table_status to migrating. Tables with this value are for internal use in Foundry only, and external clients should not read them. Foundry also sets the table's comment property to explain this restriction.
When building an external integration, check the table properties returned when you load a table from Foundry's Iceberg REST catalog, and do not read data from tables where foundry.table_status is migrating.
migrating is currently the only value Foundry sets for foundry.table_status. For all other tables, the property is not set.
The Iceberg specification also reserves a set of core Iceberg table properties ↗.
Foundry's Iceberg REST catalog includes the following constraints on certain core Iceberg table properties:
| Property | Foundry default value | User edits |
|---|---|---|
encryption.* | Set as part of Iceberg table encryption if enabled | ❌ Disallowed |
format-version | See format version defaults | ✅ Allowed |
history.expire.max-snapshot-age-ms | 2592000000 (30 days) | ✅ Allowed |
write.metadata.delete-after-commit.enabled | false | ❌ Disallowed |
write.metadata.previous-versions-max | 0 | ❌ Disallowed |
write.object-storage.enabled | true | ❌ Disallowed |
write.object-storage.partitioned-paths | false | ❌ Disallowed |
write.data.path | ❌ Disallowed | |
write.folder-storage.path | ❌ Disallowed | |
write.location-provider.impl | ❌ Disallowed | |
write.metadata.path | ❌ Disallowed | |
write.object-storage.path | ❌ Disallowed |
Where Foundry provides a default value, it takes precedence over the open source Iceberg specification default. Any property not explicitly set uses the Iceberg specification default value.
The default settings applied by Foundry are subject to change. To guarantee specific property values, make sure to explicitly set those on your table as described below.
You can set specific table properties manually, for example, by running an ALTER TABLE statement in the Iceberg maintenance page, or by specifying properties in your transform code.
Ad hoc SQL metadata updates offer a narrower option in SQL Studio for tables managed by another pipeline. This path permits only the listed write-layout and compression properties, not every property marked editable above. Table properties are shared across branches. A pipeline that replaces the table can reset these properties on its next build. Configure the properties in the producing pipeline when they must be reapplied on every build.
Below is an example code snippet setting table properties in transforms:
Copied!1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18import polars as pl from transforms.api import transform from transforms.tables import IcebergOutput, TableOutput @transform.using(output=TableOutput("/path/table")) def compute(output: IcebergOutput) -> None: df_custom = pl.DataFrame({"phrase": ["Hello", "World"]}) output.write_table(df_custom) tbl = output.iceberg().table() with tbl.transaction() as txn: txn.set_properties({ "write.delete.mode": "merge-on-read", "write.update.mode": "merge-on-read", "write.merge.mode": "merge-on-read", "history.expire.max-snapshot-age-ms": "0", })
Copied!1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28from transforms.api import TransformContext from transforms.api import transform from transforms.tables import ( TableOutput, TableTransformOutput, ) @transform( output=TableOutput("/path/table") ) def compute(ctx: TransformContext, output: TableTransformOutput): spark = ctx.spark_session df_custom = spark.createDataFrame([["Hello"], ["World"]], schema=["phrase"]) output.write_dataframe(df_custom) identifier = output.identifier spark.sql(f""" ALTER TABLE {identifier} SET TBLPROPERTIES ( 'write.delete.mode' = 'merge-on-read', 'write.update.mode' = 'merge-on-read', 'write.merge.mode' = 'merge-on-read', 'history.expire.max-snapshot-age-ms' = '0' ) """)
Set table properties only after writing the output table. This ensures that the table exists before you set properties on it, and prevents the replace operation performed by Spark's write_dataframe from overwriting your preferred property values with the defaults.