Spark: changelog scans over different time windows are treated as equal
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 46/100
調査の方向性
Start by comparing the Spark scan planning paths used by changelog views with different start-timestamp and end-timestamp options; the issue does not name a source file or test. Reproduce on Spark 3.5.5 with the SQL statements in the report, then find the relevant scan tests. Done when the union returns 0 1 while each view still returns its reported standalone result.
索引モデルが issue の本文から書いたものです。
説明
Apache Iceberg version
1.12.0 (latest release)
Query engine
Spark
Please describe the bug 🐞
Two changelog views of the same table over different start-timestamp/end-timestamp windows return the wrong rows when used in one query: Spark reuses one scan for both. Each view alone is correct. 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);
-- window 1: year 2025 (no commits); window 2: since 2026-01-01 (the insert)
CALL local.system.create_changelog_view(table => 'db.t', changelog_view => 'v2025', options => map('start-timestamp', '1735689600000', 'end-timestamp', '1767225600000'));
CALL local.system.create_changelog_view(table => 'db.t', changelog_view => 'v2026', options => map('start-timestamp', '1767225600000'));
-- control: each view alone
SELECT 'v2025 alone', count(*) FROM v2025;
SELECT 'v2026 alone', count(*) FROM v2026;
-- both views in one query
SELECT 'union', count_if(w = 2025), count_if(w = 2026) FROM (
SELECT 2025 AS w FROM v2025 UNION ALL SELECT 2026 AS w FROM v2026);
Expected
| Query | Result |
|---|---|
v2025 alone / v2026 alone (control) |
0 / 1 |
union |
0 1 |
Actual
| Query | Result |
|---|---|
v2025 alone / v2026 alone (control) |
0 / 1 |
union |
0 0 |
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
- 主要言語
- Java
- スター
- 9.5k
- フォーク
- 3.7k
- 平均マージ
- 2日 2時間
- マージ済み PR(30日)
- 170
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/iceberg のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Spark: Test INSERT targets with computed IDENTIFIER expressions対応中かも @shivadarshan-devadiga が 15 日前に担当しました。 オープンimprovement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
[Core] TestAvroPartitionStatsHandler fails on Windows due to unclosed partition statistics scan対応中かも @Ankitkj1999 が 17 日前に担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Core: TableMetadata.Builder allows adding encryption keys to v1/v2 tables対応中かも @yusufyildiz34 が 37 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/iceberg#18632 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Kafka: Filter empty strings and whitespace in IcebergSinkConfig stringToList対応中かも @mohamed-elbrik が 42 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug vault
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
bancolombia/secrets-manager#150 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
HexaHexes/neoforge-mod-template#124 ·
メンテナーはふだん 1 日以内に返信
-
awaiting triage java new feature P2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
source-survicate: pagination reads pagination and stops after one page; substreams drop survey_idオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
OpenLiberty/open-liberty#36410 ·
メンテナーはふだん 1 日以内に返信