Spark: changelog scans over different time windows are treated as equal
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 46/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Java
- Stelle
- 9.5k
- Fork
- 3.7k
- Merge medio
- 2g 2h
- PR unite (30g)
- 170
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/iceberg
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Spark: Test INSERT targets with computed IDENTIFIER expressionsForse già presa @shivadarshan-devadiga l’ha presa 15 giorni fa. Apertaimprovement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
[Core] TestAvroPartitionStatsHandler fails on Windows due to unclosed partition statistics scanForse già presa @Ankitkj1999 l’ha presa 17 giorni fa. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Core: TableMetadata.Builder allows adding encryption keys to v1/v2 tablesForse già presa @yusufyildiz34 l’ha presa 37 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/iceberg#18632 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Kafka: Filter empty strings and whitespace in IcebergSinkConfig stringToListForse già presa @mohamed-elbrik l’ha presa 42 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di apache/iceberg
Issue simili
-
bug vault
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
bancolombia/secrets-manager#150 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 92/100
HexaHexes/neoforge-mod-template#124 ·
I maintainer di solito rispondono entro 1 giorno
-
awaiting triage java new feature P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
source-survicate: pagination reads pagination and stops after one page; substreams drop survey_idAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
OpenLiberty/open-liberty#36410 ·
I maintainer di solito rispondono entro 1 giorno