Comet Native Executors: pass scalar subquery results to the cluster without rewriting the plan
I maintainer di solito rispondono entro 2 giorni
@andygrove ci sta già lavorando.
Dal 1/11/2026.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- data-engineering, distributed-systems
Direzione di ricerca
Start by reading withSubqueryResults in CometNativeExecutorsExec.scala, then trace how QueryRequest and Fragment carry data to PhysicalPlanner. Check how ExprStruct::Subquery is handled when planning blocks with native inputs. Done means subquery results are sent once and the planner can look them up without rewriting serialized plans.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What is the problem the feature request solves?
Before submitting a query, the driver (#7289) replaces each scalar subquery in the plan with a literal of its result. It parses the serialized plan of every stage that holds a subquery, and every partition's own plan for a stage that reads files, walks them, and serializes them again. For a scan over many files, that is the bulk of the request, redone on the driver for every query.
Describe the potential solution
Send the results once, as map<int64, Expr> subquery_results on QueryRequest and Fragment. Have PhysicalPlanner look up ExprStruct::Subquery in that map when it plans a block with native inputs, where today it fails because there is no JVM. The driver would then serialize only the literals.
Additional context
The rewrite is withSubqueryResults in CometNativeExecutorsExec.scala.
Part of #7288.
Willingness to contribute
Yes. I can contribute this feature independently.
- Lingua principale
- Scala
- Stelle
- 1.3k
- Fork
- 405
- Merge medio
- 3g 4m
- PR unite (30g)
- 282
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
-
area:ci enhancement priority:low requires-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
apache/datafusion-comet#7319 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
area:ci bug priority:low requires-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/datafusion-comet#7315 ·
I maintainer di solito rispondono entro 2 giorni
-
requires-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
apache/datafusion-comet#7240 ·
I maintainer di solito rispondono entro 2 giorni
-
bug priority:low
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
apache/datafusion-comet#7176 ·
I maintainer di solito rispondono entro 2 giorni
-
docs: update Scala comments that reference the removed iceberg-writes.md pageForse già presa @Abhishek-Mohan l’ha presa 3 giorni fa. Apertaenhancement
Difficoltà 1/5 1-3 ore Idoneità per principianti 83/100
apache/datafusion-comet#7101 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di apache/datafusion-comet
Issue simili
-
Traffic event delivered/rejected counters appear swapped in TrafficStateController.updateWithReceiptAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
digital-asset/canton#705 ·
I maintainer di solito rispondono entro 2 giorni
-
easy first-contributor first-contributors good first issue help wanted scala up-for-grabs
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
fork-commit-merge/fork-commit-merge#8457 ·
I maintainer di solito rispondono entro 1 giorno
-
[GC] Empty or non-numeric GC_*_HEAP_SIZE reads out of bounds or uses an uninitialised sizeForse già presa @oluies l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
scala-native/scala-native#5177 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
promovolve/promovolve#358 ·
I maintainer di solito rispondono entro 1 giorno
-
Broken links in the docsAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
svroonland/zio-kinesis#1431 ·