Flink: Support DvOnlySink to get rid of equal delete
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 15/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java
- Lĩnh vực
- data-engineering, databases
Hướng nghiên cứu
Start with delivery plan item 1: locate the Flink sink task writer, its result types, and serializers, then trace how the writer reports rows and deletes downstream. The issue does not name files or tests, so first identify the existing upsert and delete writer paths. Done means the new writer emits DVs for rows inserted and deleted in one checkpoint, reports other deletes as unresolved keys, and reports surviving rows with their keys and positions.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Background
The v4 specification removes equality deletes, so the Flink sink has to be able to express every delete as a deletion vector. Today it writes equality delete files in upsert and delete modes, which has two further costs:
- Read amplification. Every equality delete has to be evaluated during scans, so query cost grows with the volume of accumulated deletes.
- No reclamation. Equality deletes can only be removed by rewriting the data files, whereas position-scoped deletes can be consolidated per data file.
Goals
With dv-only-enabled turned on:
- The sink writes data files and DVs only, and never produces an equality delete file.
- Deletes are expressed as row positions, with at most one DV per data file.
- The primary key index stays usable after restoring from a checkpoint, without rebuilding the whole table.
Limitation
- Batch mode is not supported.
Design
https://docs.google.com/document/d/15Szp03nrF_YyoRj-SmlE_QzP0wnjbIQMQnPM8Mvr7ps/edit
Topology: writer → explode → primary key index (grouped by data file) → resolve(grouped by key) → DV writer → committer.
The coordinator maintains the index, handles its incremental updates and rebuilds, and reports the snapshot the deletes of each checkpoint were resolved against to the committer.
Delivery plan
Each item is a self-contained, independently verifiable increment. The feature flag stays off by default.
1. Write path: DV-only task writer
- Scope: a new task writer that keeps writing data files; a row inserted and then deleted within the same checkpoint becomes a DV on the data file that holds it; every other delete is reported as an unresolved delete key; the rows still live when the writer completes are reported with their key and position for the index downstream. Also introduces the result type of this writer and its serializer.
- Depends on: none
2. Primary key index: build and maintenance
- Scope: a new coordinator and index operators. The first run reads the data files already on the branch to build the index; later checkpoints only apply the changes since the previous one. When compaction rewrites a data file, its entries are dropped. When the index is no longer trustworthy, it is rebuilt for a new generation and a cleanup is broadcast.
- Depends on: 1
3. Delete resolution and DV generation
- Scope: a new resolve operator and a DV writer operator. Unresolved delete keys are resolved to positions against the primary key index, merged with the DV the data file already carries, and written out as a new DV.
- Depends on: 1, 2
4. Commit: replacing DVs and handling conflicts
- Scope: replace the DV of a data file with the new one at commit time, and handle concurrent commits. When an earlier checkpoint of this sink landed after the snapshot this checkpoint was computed from, rebase onto it incrementally instead of treating it as a concurrent modification. Genuinely concurrent modifications are merged again. Bound both the number of merges and the total time spent on them.
- Depends on: 3
5. Feature flag, pre-flight checks and documentation
- Scope: the flag and its parallelism option; startup checks for the table format version, for leftover equality deletes, and for leftover non-DV position delete files; the execution constraints (aligned checkpoints only); documentation covering the precondition that snapshots must be retained for longer than the time from a failure to a completed restart.
- Depends on: 1–4
6. Incremental index construction once the secondary index is available
- Scope: once the secondary index is available, build the primary key index incrementally from it instead of reading the data files of the branch.
- Depends on: the secondary index
- Ngôn ngữ chính
- Java
- Star
- 9.5k
- Fork
- 3.7k
- Merge trung bình
- 2 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 170
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/iceberg
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Spark: Test INSERT targets with computed IDENTIFIER expressionsCó thể đã có người làm @shivadarshan-devadiga đã nhận 15 ngày trước. Đang mởimprovement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Core] TestAvroPartitionStatsHandler fails on Windows due to unclosed partition statistics scanCó thể đã có người làm @Ankitkj1999 đã nhận 17 ngày trước. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Core: TableMetadata.Builder allows adding encryption keys to v1/v2 tablesCó thể đã có người làm @yusufyildiz34 đã nhận 37 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/iceberg#18632 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Kafka: Filter empty strings and whitespace in IcebergSinkConfig stringToListCó thể đã có người làm @mohamed-elbrik đã nhận 42 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/iceberg
Issue tương tự
-
bug vault
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
bancolombia/secrets-manager#150 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 92/100
HexaHexes/neoforge-mod-template#124 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
awaiting triage java new feature P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
source-survicate: pagination reads pagination and stops after one page; substreams drop survey_idĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
OpenLiberty/open-liberty#36410 ·
Maintainer thường phản hồi trong vòng 1 ngày