Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Apache Iceberg Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-apache-iceberg-knowledge-patch)
---
name: apache-iceberg-knowledge-patch
description: Apache Iceberg
version: "1.12.0"
license: MIT
metadata:
author: Nevaberry
---
# Apache Iceberg compatibility guidance
Load this skill when upgrading Iceberg integrations or working on table formats,
catalog protocols, schema changes, file I/O, streaming, or table maintenance.
Use the topic references for the applicable engine, library, and release context.
C++, Go, PyIceberg, and Rust guidance is organized within those same topics.
## Reference index
| Reference | Topics |
| --- | --- |
| [Compatibility and runtime](references/compatibility-and-runtime.md) | Runtime requirements, packaging, removed APIs, deprecations, language library migrations |
| [Table format, types, and schema](references/table-format-types-and-schema.md) | Formats, manifests, row lineage, deletion vectors, defaults, types, transactions |
| [Catalogs, REST, security, and cloud](references/catalog-rest-and-security.md) | Catalog operations, scan planning, retries, authentication, credentials, encryption |
| [Maintenance, statistics, and rewrites](references/maintenance-statistics-and-rewrites.md) | Snapshot cleanup, partition statistics, rewrite planning, metrics, Go CLI maintenance |
| [Spark](references/spark.md) | Readers, SQL, migration, relocation, rewrites, streaming, views |
| [Flink, Kafka Connect, and streaming](references/flink-kafka-and-streaming.md) | Sources, dynamic sinks, maintenance, watermarks, CDC, commit handling |
| [Storage formats and file I/O](references/storage-formats-and-io.md) | File Format API, storage backends, encoding, projection, deletes, DataFusion |
## Breaking changes and deprecations first
Iceberg 1.11.0 requires Java 17 or later and removes Java 11 support.
Iceberg 1.12.0 removes Spark 3.4 support. Use Flink 1.20 if staying on
Flink 1.x when upgrading to Iceberg 1.11.0.
The OpenAPI runtime JAR is no longer built or published starting in 1.10.2;
update builds and deployments that request it.
Iceberg 1.9.0 rejects `write.folder-storage.path` and `write.object-storage.path`.
The properties-map constructors for `S3FileIO` and `GCSFileIO` are deprecated;
use the no-argument constructor followed by `initialize(properties)`.
Use `TableMetadataParser.read(inputFile)` instead of the deprecated overload
`TableMetadataParser.read(fileIO, inputFile)`.
For Iceberg 1.12.0, migrate from `DataReader` to `PlannedDataReader`.
`GenericAppenderFactory`, `BaseFileWriterFactory`, and
`HadoopFileIO(SerializableSupplier)` have been removed.
The generic writer migration uses `GenericFileWriterFactory`.
Replace `SparkFilters` with `SparkV2Filters`; check removals in `SparkReadConf`,
`SparkWriteConf`, `SparkSchemaUtil`, and Spark 4.0/4.1 `SparkTableUtil` APIs.
Flink removes `RewriteDataFiles.Builder.filter(Expression)`.
Use the Snapshot Changes API instead of the deprecated direct `Snapshot`
methods for added and removed data and delete files.
`RefreshingAuthManager` has been removed; migrate custom integrations to
the supported OAuth2 authentication manager.
See [compatibility and runtime](references/compatibility-and-runtime.md) for
additional runtime requirements, API removals, and packaging changes.
## Format and schema constraints
Row lineage is required for every format-v3 table, including upgraded tables.
Format v3 permits equality deletes on tables with row lineage.
For format-v3 REST commits, producers should rely on the format version to
activate lineage; the separate enabling update has been removed.
Use `positionDeleteWriteBuilder` only for format-v2 tables.
Writers targeting format v3 must use deletion vectors for positional deletes.
In Iceberg 1.12.0, position delete files containing deleted row values are
unsupported. Scans fail if a position delete or deletion vector has a different
partition from its referenced data file.
A v2 position-delete write can fail validation if a concurrent upgrade changes
the table to format v3. Refresh the table and rebuild the delete write for the
current format before retrying. Deletion vectors for the same data file merge
at commit time, combining new positions with the existing vector.
Declare `UnknownType` fields as optional; required fields are rejected.
A required field under an optional struct can still produce null.
The Java `UpdateSchema` API supports column defaults. Spark rejects
`ADD COLUMN` with a default value in Iceberg 1.10.0.
Java can write format-v4 manifests in Avro or Parquet and read them through
`ManifestFile`. Relative paths are resolved using the table location.
The v4 `TrackedFile` partition is optional; its format version is stored as
`format_version`. `DataFile` exposes a co-located deletion vector.
See [table format, types, and schema](references/table-format-types-and-schema.md)
for Variant, geospatial types, nanosecond timestamps, schema evolution, and
language-specific metadata and transaction APIs.
## REST catalog and authentication
The default REST endpoint set omits namespace, table, and view `HEAD` endpoints.
Servers can advertise them explicitly; when an endpoint is omitted, Iceberg
uses `GET` for the existence check.
REST clients must allow `metadata-location` to be null in `LoadTableResult`.
`HTTPRequest.baseUri()` can also be null.
Send an `Idempotency-Key` for a mutating REST request and reuse it when retrying
the same operation. A supporting server can deduplicate commits, creates, and
drops. `ConfigResponse` can advertise `idempotency-key-lifetime`.
The Java client retries keyed requests on eligible errors. The REST
specification marks HTTP `503 Service Unavailable` as non-retryable.
When a CREATE transaction returns HTTP 503, its outcome may be unknown:
check whether the table was created before retrying or removing its files.
For remote scan planning, set `include-credentials` to `true` to request
storage credentials. Send the access-delegation header on planning calls
requesting vended credentials; refresh can use the `planId` query parameter.
`min-rows-requested` is a minimum planning hint; the caller applies any upper
limit to the results it reads. Submitted plans and `CompletedPlanningWithIDResult`
require `plan-id`. Polling has a timeout and a separate retry setting.
Honor the namespace separator advertised through `/v1/config`.
A conditional table load returning HTTP 304 permits reuse of cached metadata.
`referenced-by` lists views and other objects that depend on the loaded table.
Catalog-defined `labels` are exposed on Java tables through `SupportsLabels`.
Format-v1 and format-v2 tables reject encryption table properties; upgrade to
format v3 before setting them. `encryption.kms-type` selects `aws`, `azure`, or
`gcp`. `S3FileIO` and `GCSFileIO` can refresh storage credentials on a schedule.
See [catalogs, REST, security, and cloud](references/catalog-rest-and-security.md)
for provider-specific credentials, signing, endpoint contracts, and catalog APIs.
## Spark operations
After upgrading to format v3, Spark can rewrite v2 position-delete files as
deletion vectors. Spark can read the row-lineage metadata columns:
```sql
SELECT _row_id, _last_updated_sequence_number FROM prod.db.events;
```
Spark can plan scans remotely through a REST catalog supporting scan planning.
It can read Parquet Variant columns with the vectorized reader.
Spark 4.1 geospatial Parquet reads fall back to the row-based reader.
Iceberg 1.11.0 removes the Comet integration from the Spark module.
`rewrite_data_files` can target a branch, cluster with Hilbert curves, and cap
input files per group with `max-file-group-input-files`.
`rewrite_manifests` defaults `use_caching` to `false`; set it to `true` to enable.
Pass a SQL predicate as `where` to scope `rewrite_position_delete_files`.
`RemoveDanglingDeleteFilesAction` drops delete-file references that no longer
apply to the table's data files.
`migrate` and `snapshot` accept `ignore_missing_files => true` on Spark 3.5,
4.0, and 4.1. Migration rejects bucketed source tables. `SnapshotTableAction`
requires distinct, non-overlapping source and destination locations.
Spark rejects `rewrite_table_path` on encrypted tables and encrypts new
manifests for `rewrite_manifests` on those tables.
`maxRecordPerMicrobatch` is a soft limit; a microbatch can exceed it.
`Trigger.AvailableNow()` processes available input in one or more micro-batches
and then stops. Configure streaming checkpoint filesystem access independently
of the table's `FileIO`.
See [Spark](references/spark.md) for procedure examples, relocation controls,
manifest sorting, schema evolution, identifier fields, and view schema binding.
## Flink and Kafka Connect
The Flink dynamic sink routes one input stream to multiple tables, creates
destination tables, and evolves their schemas and partition specs.
Supply `TableCreator` to customize destination properties and storage location.
Use a distinct `uid-suffix` for sinks whose operator UIDs would otherwise collide.
Dynamic sinks use deterministic UIDs for checkpoint and savepoint restoration;
maintenance operators also keep stable UIDs.
Flink's `RewriteDataFiles` preserves row lineage in Iceberg 1.11.0;
the Flink path in Iceberg 1.10.0 rejects format-v3 rewrites because it lacks that support.
`ConvertEqualityDeletes` converts equality deletes to deletion vectors,
resolves unpartitioned equality deletes across all partitions, and removes
converted equality deletes during same-branch conversion.
Flink emits a watermark one less than the minimum timestamp used to compute it.
Kafka Connect validates the target table UUID at commit; dropping and recreating
a table under the same name can invalidate a pending write.
The sink surfaces commit failures, retries transient commit exceptions a bounded
number of times, and reports a partial-commit failure metric.
The coordinator commits offsets only when they advance.
A record with an updated schema can evolve the table even when its value is null.
See [Flink and Kafka Connect](references/flink-kafka-and-streaming.md) for
source bounds, SQL views, maintenance locks, sink options, CDC, and recovery.
## Maintenance and file I/O
The Java `ExpireSnapshots` API's `cleanExpiredMetadata` controls cleanup of unused metadata.
Spark's `clean_expired_metadata` option inherits the Java default when omitted;
Flink exposes the same control. Cleanup can run even when no snapshot expires.
Java can select `cleanupMode`; Spark supports a cleanup level of `None`.
Pass a snapshot ID when computing partition statistics; `PartitionStats`
consumers must allow `totalRecordCount` to be absent.
Partition-statistics scans support `project()` and `filter()`.
Lower and upper metrics bounds preserve their original types across schema changes.
See [maintenance and statistics](references/maintenance-statistics-and-rewrites.md).
Register custom `FormatModel` implementations with `FormatModelRegistry`.
Builder requests use the file format, engine data class, and Iceberg input or
output file. Setting `recordsPerBatch` on a non-vectorized reader raises an exception.
Use `write.parquet.page-version` to select the data page version for new writes.
See [storage formats and I/O](references/storage-formats-and-io.md) for examples.
## Language library integration
Go 0.5.0 registers only local I/O by default; cloud I/O requires the blank import
of `github.com/apache/iceberg-go/io/gocloud`. Use `gocloud.ParseAWSConfig`
in place of `io.ParseAWSConfig`. Migrate `FetchEntries` to the iterator-based API.
Go `compact analyze` previews compaction; `compact run` executes it.
PyIceberg 0.11.0 requires Python 3.10 or later and supports synchronous REST scan
planning only. Create the destination namespace before `rename_table`.
Its relaxed `add_files` check accepts some existing Parquet files with field IDs.
For Rust 0.10.0, build with Rust 1.94 or later and align DataFusion 53 and Arrow 58
dependencies when passing types across integration APIs. Install
`pyiceberg-core==0.10.1` for the 0.10 series; the 0.10.0 package was yanked.
Use `Catalog::purge_table` to delete data and metadata files; some catalogs moved
file deletion there from `drop_table`. Rust 0.10.0 rejects encrypted table writes.
DataFusion rejects overwrite and replace inserts instead of treating them as appends.
C++ supports incremental append and changelog scans, REST server scan planning,
Arrow C Stream task output, and snapshot expiration with reachability-based or
incremental cleanup. Find these APIs in the corresponding topic references above.