Iceberg data tables whose names end with a metadata-table name fall back to Spark
I maintainer di solito rispondono entro 1 giorno
@aryan9948 ci sta già lavorando.
Dal 6/10/2026.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 75/100
Direzione di ricerca
L’issue indica CometScanRule.isIcebergMetadataTable e IcebergReflection.getTable(scan); inizia individuando questi punti di ingresso e verificando come vengono identificate le tabelle di metadati. Aggiungi test per user_files, snapshots e order_history, insieme a una lettura effettiva della tabella di metadati .files. Il lavoro è completato quando i nomi delle tabelle ordinarie non attivano più il fallback e le tabelle di metadati reali continuano ad attivarlo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Scala
- Stelle
- 1.3k
- Fork
- 383
- Merge medio
- 2g 3h
- PR unite (30g)
- 418
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un 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/datafusion-comet
-
ANSI integral SUM overflow reports "integer overflow" without Spark's try_add suggestionForse già presa @0lai0 l’ha presa 2 giorni fa. Apertaarea:aggregation bug priority:medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
apache/datafusion-comet#6661 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Native from_json with a schema that repeats a field name fails with "ArrowArray struct has 2 children (expected 1)"Forse già presa @Samearth17 l’ha presa 3 giorni fa. Apertaarea:expressions area:ffi bug good first issue priority:medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
apache/datafusion-comet#6592 ·
I maintainer di solito rispondono entro 1 giorno
-
Casting to a struct type with repeated field names fails with "ArrowArray struct has 2 children (expected 1)"Forse già presa @Samearth17 l’ha presa 2 giorni fa. Apertaarea:expressions area:ffi bug good first issue priority:high
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
apache/datafusion-comet#6591 ·
I maintainer di solito rispondono entro 1 giorno
-
arrays_zip with two same-named inputs fails with "ArrowArray struct has 2 children (expected 1)"Forse già presa @mohitgurav20 l’ha presa 9 giorni fa. Apertaarea:expressions area:ffi bug priority:high
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/datafusion-comet#6251 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
ci: a transient Maven Central failure in lint-java is reported as a scalafix violationForse già presa @andygrove l’ha presa 17 giorni fa. Apertaarea:ci bug priority:low
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
apache/datafusion-comet#6060 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di apache/datafusion-comet
Issue simili
-
bug documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
bug 🐞 Untriaged user issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
valkey-io/valkey-glide#7306 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
lichess-org/lila#21988 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
playframework/playframework#14336 ·
I maintainer di solito rispondono entro 1 giorno