Support write options for iceberg merge query
Author: dsomeshCreated Apr 1, 2026Updated Sep 29, 2026
Labelsimprovementstale
Feature Request / Improvement
As per iceberg documentation, validate-from-snapshot-id is a way to provide base snapshot for iceberg write operations against which iceberg will use to validate conflicting writes. However, both the merge query and newly added merge API lack this. The support only seems to be there for overwrite operations.
usecase: In case of multi step operations, where data is read once in the beginning, transformed and written at the end using merge query, the abovementioned property can be used to achieve OCC. The current OCC lifespan starts from the beginning of merge query.
past discussions :
https://github.com/apache/iceberg/pull/7607 mentions passing options in merge query but nothing conclusive.
Query engine
Spark
Willingness to contribute
- I can contribute this improvement/feature independently
- I would be willing to contribute this improvement/feature with guidance from the Iceberg community
- I cannot contribute this improvement/feature at this time
Source: apache/iceberg