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-nevaberry-plugins)
---
name: apache-iceberg-knowledge-patch
description: Apache Iceberg
version: "1.12.0"
license: MIT
metadata:
author: Nevaberry
---
# Apache Iceberg
Load this skill when upgrading Iceberg integrations or working on table formats,
schemas, catalogs, storage, scans, streaming, or maintenance. Follow the topic
references for implementation-specific guidance and release attribution.
## Reference index
| Reference | Topics |
| --- | --- |
| [Compatibility and upgrades](references/compatibility-and-upgrades.md) | Runtime requirements, artifacts, Java API removals, Rust dependencies, C++ builds, Go migrations, Python installation |
| [Table format, schema, and types](references/table-format-schema-and-types.md) | Formats, manifests, lineage, deletion vectors, defaults, Variant, geospatial types, schema evolution, row mutations across libraries |
| [REST and catalogs](references/rest-and-catalogs.md) | Discovery, retries, remote planning, registration, views, functions, Hive, JDBC, BigQuery, Rust/DataFusion, C++, Go, PyIceberg |
| [Cloud storage and security](references/cloud-storage-and-security.md) | Authentication, credential precedence and refresh, encryption, S3 signing, ADLS, GCP, storage backends across libraries |
| [Maintenance, statistics, and I/O](references/maintenance-statistics-and-io.md) | Expiration, cleanup, compaction, statistics, file-format models, readers, writers, Rust/DataFusion scans, C++ scans, Go CLI, PyIceberg scans |
| [Spark integration](references/spark.md) | Readers, SQL, streaming, scan planning, rewrites, migration, relocation, views, snapshot properties |
| [Flink and Kafka integrations](references/flink-and-kafka.md) | Sources, dynamic sinks, SQL, watermarks, maintenance locks, lineage, Variant, CDC transforms, offsets and commit recovery |
## Breaking changes and upgrade requirements
Iceberg 1.11.0 requires Java 17 or later. Iceberg 1.12.0 removes Spark 3.4
support. Use JDK 17 or 21 when building Iceberg with Spark 4.0 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.
Applications relying on logging dependencies from the AWS bundle must supply
them on the runtime classpath. The Spark Comet integration is removed in 1.11.0.
Iceberg 1.9.0 rejects `write.folder-storage.path` and `write.object-storage.path`.
Use the builder for nested schema fields; the older `of(...)` factory is deprecated.
Declare `UnknownType` fields optional: the Java schema API rejects required ones.
For the Java I/O removals in 1.12.0, migrate from `DataReader` to
`PlannedDataReader`. `GenericAppenderFactory`, `BaseFileWriterFactory`, and
`HadoopFileIO(SerializableSupplier)` have been removed.
Use `GenericFileWriterFactory` for generic record writers.
Replace `SparkFilters` with `SparkV2Filters`. Check removals in `SparkReadConf`,
`SparkWriteConf`, `SparkSchemaUtil`, and Spark 4.0/4.1 `SparkTableUtil` APIs.
Flink removes `RewriteDataFiles.Builder.filter(Expression)` in Iceberg 1.12.0.
Use the Snapshot Changes API in place of deprecated direct `Snapshot` methods
for added and removed data and delete files. A non-vectorized file reader raises
an exception if `recordsPerBatch` is set.
`RefreshingAuthManager` has been removed. Migrate custom REST integrations that
reference it to the supported OAuth2 authentication manager. Construct
`S3FileIO` and `GCSFileIO` without arguments, then call `initialize(properties)`
instead of using their deprecated properties-map constructors.
## Delete-file and format constraints
Row lineage is required for every format-v3 table, including upgraded tables.
Format v3 permits equality deletes on tables with row lineage. REST producers
should rely on the format version to enable 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. Iceberg 1.12.0
removes support for position deletes containing deleted row values. Scans fail
when a position delete or deletion vector has a different partition from its
referenced data file.
A v2 position-delete write can fail validation if the table upgrades to v3
before commit. Refresh the table and rebuild the delete write for the current
format before retrying. Rewrites must account for deletion vectors when removing
their data files; needed vectors are carried forward and dangling ones removed.
## Catalog retries and uncertain commits
The REST client stopped automatically retrying HTTP `502 Bad Gateway` and
`504 Gateway Timeout` in Iceberg 1.9.2. The REST specification marks HTTP
`503 Service Unavailable` as non-retryable; the Java client allows retries for
idempotent requests on eligible response codes.
Send an `Idempotency-Key` for a mutating REST request and reuse it for retries
of that operation. Supporting servers can deduplicate commits, creates, and
drops; `idempotency-key-lifetime` advertises the recognition period. In 1.12.0,
the Java client retries requests carrying this header on eligible errors.
If a CREATE transaction returns HTTP 503, its files remain because the commit
outcome may be unknown. Check whether the table was created before retrying or
removing files. Snapshot loading happens after commit so a loading failure does
not put already-committed files into failed-commit cleanup.
## REST discovery, loads, and scan planning
The default endpoint set omits namespace, table, and view `HEAD` endpoints.
Servers can advertise them; Iceberg uses `GET` when the corresponding `HEAD`
endpoint is omitted. REST clients must allow null `metadata-location` in a
`LoadTableResult`. A conditional load returning HTTP 304 permits cached metadata.
A catalog can advertise `scan-planning-mode` in `LoadTableResult` config;
individual tables can override the catalog mode. Remote planning covers
incremental Structured Streaming scans and metadata tables such as `history`
and `snapshots`. PyIceberg 0.11.0 supports synchronous remote planning only.
Set `include-credentials` to `true` to request storage credentials with a scan
plan, and send the access-delegation header on planning calls requesting vended
credentials. The credentials endpoint accepts `planId` to refresh credentials
for the original plan. `min-rows-requested` is a minimum coverage hint; callers
apply any upper limit to the results they read.
`referenced-by` lists views and other objects that depend on the loaded table.
REST table and view loads can return catalog metadata in `labels`; Java tables
expose it through `SupportsLabels`. A dedicated REST unregistration endpoint
removes a table registration while retaining its files.
## Schema and file-format APIs
Java `UpdateSchema` supports column defaults. Parquet and Avro readers support
defaults for omitted columns. Spark rejects `ADD COLUMN` with a default value,
while its schema conversion carries defaults through the conversion.
An optional enclosing struct can make a required nested field return null.
Java can write format-v4 manifests in Avro or Parquet and read them through
`ManifestFile`; the v4 reader resolves relative paths using the table location.
A v4 `TrackedFile` has an optional partition and stores its version in
`format_version`. `DataFile` exposes its co-located deletion vector.
Register custom `FormatModel` implementations with `FormatModelRegistry`.
Engines request builders using file format, engine data class, and an Iceberg
input or output file. See the I/O reference for the builder calls and models.
Use normalized JSON paths for Variant fields in the Java API. Java Parquet
writers can supply `Parquet.DataWriteBuilder.variantShreddingFunc()`.
Parquet reads and writes geometry and geography as WKB with their logical types;
Java also supports Avro I/O for them. Spark 4.1 geospatial reads use the row-based
reader.
## Statistics and snapshot maintenance
Pass a snapshot ID when computing partition statistics; `PartitionStats`
consumers must allow absent `totalRecordCount`. Partition-statistics scans
support `project()` and `filter()`. Metrics bounds preserve their original types.
The Java `ExpireSnapshots` API exposes `cleanExpiredMetadata` to control unused
metadata cleanup. Spark
and Flink expose the same control, and unused metadata can be cleaned even when
no snapshot expires. Java supports `cleanupMode`; Spark supports cleanup level
`None`. Snapshot expiration can remove unused partition specs and schemas.
Spark's `rewrite_data_files` can target a branch, cluster along a Hilbert curve,
and cap input files per group with `max-file-group-input-files`. Its
`RemoveDanglingDeleteFilesAction` drops delete-file references that no longer
apply. `rewrite_manifests` defaults `use_caching` to `false`.
## Spark operations and streaming
After upgrading to format v3, Spark can rewrite v2 position deletes as deletion
vectors and read the row-lineage metadata columns:
```sql
SELECT _row_id, _last_updated_sequence_number FROM prod.db.events;
```
`maxRecordPerMicrobatch` is a soft limit. `Trigger.AvailableNow()` processes
available input in one or more micro-batches and then stops. Configure checkpoint
filesystem access independently of the table's `FileIO`.
On Spark 3.5, 4.0, and 4.1, `migrate` and `snapshot` accept
`ignore_missing_files => true`. Snapshot source and destination locations must
not overlap. Spark rejects bucketed tables as migration input.
`rewrite_table_path` can skip its copy-file list with `create_file_list => false`.
Spark rejects that procedure on encrypted tables; `rewrite_manifests` encrypts
new manifests on encrypted tables. Set `rest.catalog-purge=true` to let a REST
catalog perform `DROP TABLE PURGE`.
## Flink and Kafka Connect operations
The Flink dynamic sink routes a stream to multiple tables, creates destinations,
and evolves schemas and partition specs. A `TableCreator` customizes properties
and location. Use distinct `uid-suffix` values for sinks whose UIDs would collide.
Iceberg 1.10.0 rejects Flink format-v3 rewrites because its rewrite path lacks
row lineage; 1.11.0 adds lineage-preserving `RewriteDataFiles` maintenance.
`ConvertEqualityDeletes` converts equality deletes to deletion vectors, resolves
unpartitioned equality deletes across all partitions, and removes converted
equality deletes during same-branch conversion.
Flink SQL view operations require a backing catalog supporting views. SQL
`LIKE` passes through only allow-listed catalog properties. A streaming source
rejects `endTag` and `endSnapshotId`; use a bounded scan for those end bounds.
Kafka Connect validates the target table UUID at commit. A drop and recreation
under the same name can invalidate a pending write. It 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.
## Storage authentication and encryption
When properties contain a valid AWS or ADLS credential, that credential takes
precedence over an endpoint request.
An explicit AWS credential provider takes precedence over the default chain.
`S3FileIO` and `GCSFileIO` can refresh storage credentials on a schedule;
`ADLSFileIO` can refresh vended credentials.
Set `encryption.kms-type` to `aws`, `azure`, or `gcp` for provider selection.
Format-v1 and format-v2 tables reject encryption table properties; upgrade to
format v3 first. Set `kms.endpoint` for a custom or private AWS KMS endpoint.
The Rust library rejects encrypted-table writes in 0.10.0.
## Other language integrations
For Rust 0.10.0, build with Rust 1.94 or later and align direct dependencies with
DataFusion 53 and Arrow 58 when passing types across integration APIs. Install
`pyiceberg-core==0.10.1` for the 0.10 series: its 0.10.0 package was yanked after
being built from the wrong repository ref. DataFusion rejects overwrite and
replace inserts against Iceberg tables.
Go registers only local filesystem I/O by default; the cloud-storage reference
contains the blank import for cloud I/O. Use `gocloud.ParseAWSConfig` in place
of `io.ParseAWSConfig`. Migrate `FetchEntries` callers to its iterator API.
Use `Analyze` for a compaction dry run and `RewriteDataFiles` for bin-pack
compaction; CLI counterparts are `compact analyze` and `compact run`.
C++ supports Meson builds, REST and SQL catalogs, incremental append and
changelog scans, and Arrow C Stream task output. Its snapshot expiration
supports reachability-based and incremental file cleanup.
Upgrade Python 3.9 environments to Python 3.10 or later for PyIceberg 0.11.0.
PyIceberg can roll back by snapshot ID or time, set the current snapshot, update
sort order, and read ORC through PyArrow I/O. Its relaxed `add_files` field-ID
check allows some existing Parquet files with embedded IDs to be registered.