Iceberg data tables whose names end with a metadata-table name fall back to Spark
Los mantenedores suelen responder en 1 día
@aryan9948 ya está trabajando en esto.
Desde el 6/10/2026.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 75/100
Línea de trabajo
El issue apunta a CometScanRule.isIcebergMetadataTable y IcebergReflection.getTable(scan); empieza por localizar esos puntos de entrada y comprobar cómo se identifican las tablas de metadatos. Añade cobertura para user_files, snapshots y order_history, junto con una lectura real de la tabla de metadatos .files. El trabajo estará terminado cuando los nombres de tablas normales ya no activen la alternativa y las tablas de metadatos reales sigan haciéndolo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
CometScanRule.isIcebergMetadataTable matches the table name with endsWith against the metadata table names (files, snapshots, history, entries, manifests, partitions, ...) with no separator. Any ordinary Iceberg table whose name ends with one of those words is treated as a metadata table and falls back to Spark with Iceberg Metadata tables are not supported, for example user_files, order_history, daily_partitions, or a table named snapshots.
val name = scanExec.table.name().toLowerCase(Locale.ROOT)
metadataTableSuffix.exists(name.endsWith)
Steps to reproduce
CREATE TABLE cat.db.user_files (id INT, name STRING) USING iceberg;
INSERT INTO cat.db.user_files VALUES (1, 'a'), (2, 'b');
SELECT * FROM cat.db.user_files;
With spark.comet.scan.icebergNative.enabled=true and spark.comet.explain.fallback.enabled=true the scan is reported as:
BatchScan cat.db.user_files [COMET: Iceberg Metadata tables are not supported]
The same table named users gets CometIcebergNativeScan.
Expected behavior
Only real metadata tables (cat.db.user_files.files, ...metadata.json#files) should fall back.
Additional context
Proposed fix: recognize a metadata table by its Iceberg type. Every metadata table extends org.apache.iceberg.BaseMetadataTable, and the table is reachable through the existing IcebergReflection.getTable(scan). Fall back to a whole-segment name match (.files, #files) only when the table cannot be reached. Happy to open a PR with a test covering user_files, snapshots and order_history plus a real .files read.
- Lenguaje dominante
- Scala
- Estrellas
- 1.3k
- Forks
- 383
- Merge medio
- 2 d 4 h
- PR fusionados (30 d)
- 419
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una 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/datafusion-comet
-
ANSI integral SUM overflow reports "integer overflow" without Spark's try_add suggestionPosiblemente ocupada @0lai0 la tomó hace 1 día. Abiertoarea:aggregation bug priority:medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apache/datafusion-comet#6661 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Native from_json with a schema that repeats a field name fails with "ArrowArray struct has 2 children (expected 1)"Posiblemente ocupada @Samearth17 la tomó hace 2 días. Abiertoarea:expressions area:ffi bug good first issue priority:medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
apache/datafusion-comet#6592 ·
Los mantenedores suelen responder en 1 día
-
Casting to a struct type with repeated field names fails with "ArrowArray struct has 2 children (expected 1)"Posiblemente ocupada @Samearth17 la tomó hace 1 día. Abiertoarea:expressions area:ffi bug good first issue priority:high
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
apache/datafusion-comet#6591 ·
Los mantenedores suelen responder en 1 día
-
arrays_zip with two same-named inputs fails with "ArrowArray struct has 2 children (expected 1)"Posiblemente ocupada @mohitgurav20 la tomó hace 8 días. Abiertoarea:expressions area:ffi bug priority:high
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/datafusion-comet#6251 · 4 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
ci: a transient Maven Central failure in lint-java is reported as a scalafix violationPosiblemente ocupada @andygrove la tomó hace 16 días. Abiertoarea:ci bug priority:low
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
apache/datafusion-comet#6060 ·
Los mantenedores suelen responder en 1 día
Todos los issues de apache/datafusion-comet
Issues similares
-
withMaxHeaderSize is not applied to HTTP/2 since h2c support in 0.7.2 (431 Request Header Fields Too Large)Posiblemente ocupada @rbos-dhl la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
http4s/http4s-netty#1028 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 2 días
-
area/map-site bug layer/core size/S
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
marola-dev/marola-app#60 ·
Los mantenedores suelen responder en 1 día
-
enhancement help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
lambdaworks/zio-elasticsearch#863 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día