Repository navigation
Conversation
b3d1b3d to
cb241f6
Compare
|
Workflow [PR], commit [5997c12] Summary: ❌
AI ReviewSummaryThis PR adds Findings❌ Blockers
Final VerdictChanges still need fixes before approval. |
5057b8a to
f60db46
Compare
962c8f5 to
8bc8c92
Compare
1cfbbf2 to
f8864c2
Compare
0829536 to
5997c12
Compare
| entry.field(Iceberg::f_existing_rows_count) = r.existing_rows_count; | ||
| entry.field(Iceberg::f_deleted_rows_count) = 0; | ||
|
|
||
| writer.write(entry_datum); |
There was a problem hiding this comment.
writeManifestList is manually emitting the replacement manifest-list entries, but unlike generateManifestList(..., existing_entry_counts, entry_partition_summaries) it never populates partitions. Those summaries are optional for validity, but they are the only manifest-list-level pruning metadata, so every partial DROP PARTITION strips partition bounds from the rewritten manifests.
That means Spark/Trino can still read the table, but partition-filtered planning now has to open each rewritten manifest instead of pruning it from the manifest list. Could we either route this path through generateManifestList or recompute partitions from the surviving entries before writer.write(entry_datum)?
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 767/1167 (65.72%) · Uncovered code |
Rewrite affected manifests while preserving their Avro schema and file metadata. Record removed files as `DELETED` so concurrent Iceberg writers can detect the drop, and carry unrelated manifests forward unchanged. Share partition-summary serialization in `IcebergWrites`. Cover partition transforms, metadata preservation, and concurrent writes with Trino and Spark. Keep transform round trips small and run the detailed metadata scenario separately; extract the REST catalog commit barrier. Validation: normal `ninja` build and 32 passing integration tests. Related: #105198
Rewrite affected manifests while preserving their Avro schema and file metadata. Record removed files as `DELETED` so concurrent Iceberg writers can detect the drop, and carry unrelated manifests forward unchanged. Share partition-summary serialization in `IcebergWrites`. Cover partition transforms, metadata preservation, and concurrent writes with Trino and Spark. Keep transform round trips small and run the detailed metadata scenario separately; extract the REST catalog commit barrier. Validation: normal `ninja` build and 32 passing integration tests. Related: #105198
Rewrite affected manifests while preserving their Avro schema and file metadata. Record removed files as `DELETED` so concurrent Iceberg writers can detect the drop, and carry unrelated manifests forward unchanged. Share partition-summary serialization in `IcebergWrites`. Cover partition transforms, metadata preservation, and concurrent writes with Trino and Spark. Keep transform round trips small and run the detailed metadata scenario separately; extract the REST catalog commit barrier. Validation: normal `ninja` build and 32 passing integration tests. Related: #105198
Rewrite affected manifests while preserving their Avro schema and file metadata. Record removed files as `DELETED` so concurrent Iceberg writers can detect the drop, and carry unrelated manifests forward unchanged. Share partition-summary serialization in `IcebergWrites`. Cover partition transforms, metadata preservation, and concurrent writes with Trino and Spark. Keep transform round trips small and run the detailed metadata scenario separately; extract the REST catalog commit barrier. Validation: normal `ninja` build and 32 passing integration tests. Related: #105198
Closes: #97929
Implements
ALTER TABLE ... DROP PARTITION (...)for Iceberg v2 tables, e.g.ALTER TABLE my_iceberg DROP PARTITION (2, '2'). The partition expression accepts thesame literal/tuple/transform forms as the partition spec (e.g.
icebergBucket, date transforms).Behaviour:
the survivors.
DataLakeCatalog) and path-based tables.Limitations:
allow_insert_into_icebergsetting.schema than the table's current one (schema evolution).
decimal,UUID, andbooleanpartition columns.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Support
ALTER TABLE ... DROP PARTITION (...)on Iceberg v2 tables, e.g.ALTER TABLE my_iceberg DROP PARTITION (2, '2').Documentation entry for user-facing changes