procedures called on `db.t.branch_b` act on `main`
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 52/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java, spark
- Lĩnh vực
- backend-api-design, databases
Hướng nghiên cứu
Start by tracing how Spark procedures resolve the table argument and select a branch or snapshot; the report names add_files, set_current_snapshot, rewrite_manifests, compute_table_stats, and rewrite_data_files as comparison points. Reproduce the SQL example against Iceberg 1.12.0 or the reported main revision and inspect the procedure tests. Done when procedures consistently commit to the requested branch and the regression is covered by tests.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Apache Iceberg version
1.12.0 (latest release)
Query engine
Spark
Please describe the bug 🐞
CALL add_files(table => 'db.t.branch_b', ...) succeeds but commits the files to main, not to branch b. Other procedures ignore the branch the same way, e.g. set_current_snapshot, rewrite_manifests and compute_table_stats; only rewrite_data_files honors it. Reproduced on main (9d4f6c7, 2026-11-28) and 1.12.0, Spark 3.5.5.
Reproduction
CREATE TABLE local.db.t (id INT) USING iceberg;
INSERT INTO local.db.t VALUES (1);
ALTER TABLE local.db.t CREATE BRANCH b;
-- control: INSERT honors the branch
INSERT INTO local.db.t.branch_b VALUES (2);
CREATE TABLE src (id INT) USING parquet LOCATION '/tmp/src';
INSERT INTO src VALUES (100);
CALL local.system.add_files(table => 'db.t.branch_b', source_table => '`parquet`.`/tmp/src`');
SELECT 'main', collect_list(id) FROM (SELECT id FROM local.db.t ORDER BY id);
SELECT 'b', collect_list(id) FROM (SELECT id FROM local.db.t.branch_b ORDER BY id);
Expected
| Query | Result |
|---|---|
main |
[1] |
b |
[1,2,100] |
Actual
| Query | Result |
|---|---|
main |
[1,100] |
b |
[1,2] |
Willingness to contribute
- I can contribute a fix for this bug independently
- I would be willing to contribute a fix for this bug with guidance from the Iceberg community
- I cannot contribute a fix for this bug at this time
- 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