procedures called on `db.t.branch_b` act on `main`
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- java, spark
- Área
- backend-api-design, databases
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Java
- Estrellas
- 9.5k
- Forks
- 3.7k
- Merge medio
- 2 d 2 h
- PR fusionados (30 d)
- 170
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/iceberg
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Spark: Test INSERT targets with computed IDENTIFIER expressionsPosiblemente ocupada @shivadarshan-devadiga la tomó hace 15 días. Abiertoimprovement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
[Core] TestAvroPartitionStatsHandler fails on Windows due to unclosed partition statistics scanPosiblemente ocupada @Ankitkj1999 la tomó hace 17 días. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Core: TableMetadata.Builder allows adding encryption keys to v1/v2 tablesPosiblemente ocupada @yusufyildiz34 la tomó hace 37 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/iceberg#18632 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Kafka: Filter empty strings and whitespace in IcebergSinkConfig stringToListPosiblemente ocupada @mohamed-elbrik la tomó hace 42 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
Todos los issues de apache/iceberg
Issues similares
-
bug vault
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
bancolombia/secrets-manager#150 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
HexaHexes/neoforge-mod-template#124 ·
Los mantenedores suelen responder en 1 día
-
awaiting triage java new feature P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
source-survicate: pagination reads pagination and stops after one page; substreams drop survey_idAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
OpenLiberty/open-liberty#36410 ·
Los mantenedores suelen responder en 1 día