---
title: "Lakehouse - Using Iceberg format version 3"
description: "Find out what Lakehouse supports with Iceberg v3 (Experimental) - table creation, v2 upgrade, deletion vectors, file loads, per-engine risks and limits"
url: https://docs.ovhcloud.com/es/guides/public-cloud/data-analytics/lakehouse/lakehouse-iceberg-v3
lang: en
lastUpdated: 2026-12-01
---
> For AI agents: the complete documentation index is available at https://docs.ovhcloud.com/es/llms.txt, the full documentation bundle is available at https://docs.ovhcloud.com/es/llms-full.txt.

# Lakehouse - Using Iceberg format version 3

**Warning:** Lakehouse is in alpha. It is only available to the accounts invited to the alpha programme, and its features, interface and API may change.

## Objective

**This guide describes what Lakehouse supports with Apache Iceberg format version 3, how to use it, and the risks to know before you adopt it.**

**Warning:** Iceberg format version 3 is **Experimental** on Lakehouse. You use it at your own risk: it is outside the service level objectives (SLOs), defects are fixed on a best-effort basis, and its behaviour may change.

A version 3 table cannot go back to version 2.

Version 2 remains the default format. You choose version 3 table by table, when you create a table or when you upgrade an existing table from version 2 to version 3.

## Requirements

- A Lakehouse, a schema and a user with a credential. See [Lakehouse - Getting started](https://docs.ovhcloud.com/es/guides/public-cloud/data-analytics/lakehouse/lakehouse-getting-started.md).
- To create a table: a role that allows creating tables in the schema.
- To upgrade a table to version 3: a role that allows changing the structure of the table (`ALTER` privilege).
- If you read or write your tables with your own engines: the list of these engines and their versions. The "[Engines](#engines)" section says what each of them can read and write.

## Instructions

### What version 3 brings

In version 2, deleting or updating a few rows can make the engine rewrite whole data files. In version 3, the engine writes a **deletion vector**: a small file, next to the data file, that lists the deleted rows. Deletes and updates are faster, and the data file is not rewritten.

Version 3 also brings the `variant` type, to store semi-structured data, and default values on columns.

### What the platform supports

| Capability                                  | How                             | Good to know                                                                                    |
| ------------------------------------------- | ------------------------------- | ----------------------------------------------------------------------------------------------- |
| Create a version 3 table                    | Data console, SQL               | Version 2 remains the default choice.                                                           |
| `variant` type                              | Data console (at creation), SQL | Version 3 only. Readable by some engines only.                                                  |
| Default value of a column                   | SQL                             | Shown in the data console, read-only.                                                           |
| Deletes and updates with deletion vectors   | SQL, on any version 3 table     | Shown in the **Storage** tab of the table, on the **Deletion vectors** row.                     |
| Load a file into a version 3 table          | Data console                    | A load that creates a table creates it in version 2.                                            |
| Upgrade a table from version 2 to version 3 | Data console, SQL               | Final. Requires the `ALTER` privilege.                                                          |
| Version 4                                   | Refused                         | The catalog refuses to create a version 4 table or to upgrade a table to version 4 (error 400). |

The nanosecond timestamps and the geometry and geography types of version 3 are available in SQL, but each of them is unreadable by at least one engine of the [engines](#engines) table.

### Creating a version 3 table

#### Data console

In the data console, open the schema and click the button that creates a table. Under **Iceberg format**, choose **Version 3**, marked **Experimental**. The `variant` type then appears in the list of column types.
Once created, the table shows its version and the **Experimental** badge on its page.

#### SQL

From the SQL editor of the data console or from any client connected to the SQL endpoint:
```sql
CREATE TABLE <schema>.<table> (
    id bigint,
    payload variant
)
WITH (format_version = 3);
```
Without the `format_version` property, the table is created in version 2.

#### Your own engine

First check what your engine can read and write in the [engines](#engines) table. An engine connected to the Iceberg REST catalog creates a version 3 table with the table property `format-version` set to `3`. For example, with Spark:
```sql
CREATE TABLE lakehouse.<schema>.<table> (id bigint, label string)
USING iceberg
TBLPROPERTIES ('format-version' = '3');
```

### Upgrading a table from version 2 to version 3

**Warning:** This upgrade is final. Afterwards, every engine that reads the table must support version 3: an engine that does not support it can no longer read this table. Check each of your engines before you start.

The data is not rewritten: only the metadata of the table changes, and the upgrade is immediate. Subsequent deletes write deletion vectors.

#### Data console

On the page of the table, click **Upgrade to v3…**. The dialog reminds you that the operation is final. Enter the name of the table to confirm, then click **Upgrade to v3**.
If your rights do not allow it, the console says so: the upgrade requires the `ALTER` privilege on the table. If a file load is in progress on the table, wait until it ends.

#### SQL

```sql
ALTER TABLE <schema>.<table> SET PROPERTIES format_version = 3;
```

### Deleting and updating rows

On a version 3 table, a `DELETE` or an `UPDATE` run by the SQL engine of the Lakehouse writes a deletion vector instead of rewriting the data file.

```sql
DELETE FROM <schema>.<table> WHERE id < 100;
```

The **Storage** tab of the table shows these files on the **Deletion vectors** row, with the number of rows marked as deleted. The bucket figures date from the last storage analysis: run a new one to update them.

### Loading a file into a version 3 table

The file load of the data console works on a version 3 table as it does on a version 2 table.

- With **Replace the data**, the rows of the file replace those of the table, and the earlier deletion vectors are no longer referenced.
- With **Recreate the table**, the table is recreated in its format version: a version 3 table stays in version 3.
- With **Create the table**, the new table is created in version 2. To load into a version 3 table, first create the table in version 3, then load the file into it.

### Risks and limits

#### What Experimental means

- Format version 3 is outside the service level objectives of the product.
- Defects are fixed on a best-effort basis, with no guaranteed timeframe.
- The behaviour can change from one version of the platform to the next.
- Trino, the SQL engine of the Lakehouse, documents its own support for version 3 as experimental.

#### An upgrade with no way back

A version 3 table does not go back to version 2: the catalog refuses the request. To go back, create a version 2 table and copy the data into it.

#### Version 4 is refused

The catalog refuses to create a version 4 table and to upgrade a table to version 4, whichever engine asks for it.

#### Engines

A Lakehouse accepts any engine compatible with Iceberg REST: the same table can be written by one engine and read by another. The compatibility with your own engines is documented here, not guaranteed. The versions listed are the ones that were tested.

| Engine                               | Version 3 table | Deletion vectors                                          | Limits found                                                                                                                                                                             |
| ------------------------------------ | --------------- | --------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| SQL engine of the Lakehouse          | Read, write     | Read, write                                               | None for the capabilities covered by this guide                                                                                                                                          |
| Spark 4.0 and 3.5, with Iceberg 1.10 | Read, write     | Read. Write only if the table is in `merge-on-read` mode. | A table that holds a nanosecond timestamp, a geometry or a geography does not open. Spark 3.5 does not open a table that holds a `variant` column. Default values are read, not written. |
| DuckDB 1.5                           | Read, write     | Read, write                                               | A `variant` column written by DuckDB is not readable by the SQL engine of the Lakehouse. A table that holds a nanosecond timestamp with time zone cannot be read.                        |
| PyIceberg 0.12                       | Read            | Read                                                      | No write to a version 3 table. A table that holds a `variant` column does not load.                                                                                                      |
| iceberg-go 0.7                       | Read, write     | Read, write                                               | A geometry column written by iceberg-go is not readable by DuckDB.                                                                                                                       |

With Spark, a `DELETE`, an `UPDATE` or a `MERGE` writes a deletion vector only if the table sets the matching property, `write.delete.mode`, `write.update.mode` or `write.merge.mode`, to `merge-on-read`. Otherwise Spark rewrites the data file. Version 3 tables were tested with Iceberg 1.10: use this version or a later one.

#### Before upgrading a table to version 3

1. List every engine and tool that reads or writes the table, with its version.
2. Check each of them in the table above, taking the column types of the table into account.
3. Try on a copy of the table first: create it in version 3, write to it with each engine that writes the table, then read it with each of your engines.
4. Upgrade the table to version 3 only once these writes and reads succeed.

## Go further

[Lakehouse - Key concepts](https://docs.ovhcloud.com/es/guides/public-cloud/data-analytics/lakehouse/lakehouse-concepts.md)

[Lakehouse - Connecting your own tools](https://docs.ovhcloud.com/es/guides/public-cloud/data-analytics/lakehouse/lakehouse-connect-tools.md)

[Lakehouse - Quotas and limits](https://docs.ovhcloud.com/es/guides/public-cloud/data-analytics/lakehouse/lakehouse-quotas.md)

[Apache Iceberg specification](https://iceberg.apache.org/spec/)

Join our [community of users](https://community.ovhcloud.com/).
