[Feature Request]: Attach RunInference model_identifier annotation only to the inference ParDo when with_exception_handling(threshold<1) is used
I maintainer di solito rispondono entro 2 giorni
@Brijesh-Thakkar ci sta già lavorando.
Dal 31/10/2026.
- #40922 di @Brijesh-Thakkar — chiusa senza merge
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- backend, data-engineering
Direzione di ricerca
Start with RunInference.expand() and _ExceptionHandlingWrapper._post_process_result in the Python SDK, then read the linked transform_annotations implementation and the discussion on PR #40671. Trace how _build_pardo creates the wrapped inference ParDo and the threshold transforms. Done means the model_identifier annotation is attached only to the inference ParDo when exception handling uses a threshold below 1.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What would you like to happen?
RunInference.expand() scopes the model_identifier transform annotation to the BeamML_RunInference step via pipeline.transform_annotations(model_identifier=...) (see #40671). Because transform_annotations applies to every sub-transform applied inside the context, when with_exception_handling(threshold=<1.0) is used, the threshold-checking transforms that _ExceptionHandlingWrapper._post_process_result adds (CountTotal, CountBad, CombineGlobally, CheckThreshold, ...) also inherit the model_identifier annotation, even though they never run _RunInferenceDoFn:
This is harmless for Dataflow today (only ParDo steps consume the annotation and the threshold steps are tiny), but it is imprecise. We should refactor so the annotation is attached only to the inner inference ParDo, e.g.:
- expose a hook on
_ExceptionHandlingWrapper/ParDo.with_exception_handlingto annotate only the wrappedParDobuilt in_build_pardo, or - apply the annotation to
run_inference_pardodirectly (e.g. viaPTransform.annotations()on a thinParDosubclass) instead of using the pipeline-leveltransform_annotationscontext manager.
Follow-up from the discussion in https://github.com/apache/beam/pull/40671#discussion_r4342559127.
Issue Priority
Priority: 3 (nice-to-have improvement)
Issue Components
- Component: Python SDK
- Component: Java SDK
- Component: Go SDK
- Component: Typescript SDK
- Component: IO connector
- Component: Beam YAML
- Component: Beam examples
- Component: Beam playground
- Component: Beam katas
- Component: Website
- Component: Infrastructure
- Component: Spark Runner
- Component: Flink Runner
- Component: Samza Runner
- Component: Twister2 Runner
- Component: Hazelcast Jet Runner
- Component: Google Cloud Dataflow Runner
- Lingua principale
- Java
- Stelle
- 8.7k
- Fork
- 4.8k
- Merge medio
- 3g 16h
- PR unite (30g)
- 445
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/beam
-
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
-
[Bug]: [Python] BigTableEnrichmentHandler coerces None lookup keys to literal b'None' and formats blank key name on KeyErrorForse già presa @shikhabhadoria l’ha presa 6 giorni fa. Apertaio P2 python
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
apache/beam#41346 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
Release notes links wrongForse già presa @schizophrenicmaniac l’ha presa 20 giorni fa. Apertabug P3
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 67/100
apache/beam#41197 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
apache/beam#39624 · 2 reazioni ·
I maintainer di solito rispondono entro 2 giorni
-
[Bug]: PubsubIO used in batch incorrect batch cutoff sizeForse già presa @1fanwang l’ha presa 98 giorni fa. Apertabug io P3 pinned pubsub
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/beam#28011 · 4 commenti ·
I maintainer di solito rispondono entro 2 giorni
Issue simili
-
`ovsx verify` fails for a version older than the 100 newest of an extensionForse già presa @trivikr l’ha presa oggi. Apertacli
Difficoltà 2/5 1-3 ore Idoneità per principianti 81/100
eclipse-openvsx/openvsx#2482 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
Magic-team-jvav/confluence#281 ·
-
CVE-2026-139999 react-routerApertaarea/dependencies area/dependencies/js backport/26.6 backport/26.8 kind/cve severity/medium source/scan-dependencies status/triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 67/100
I maintainer di solito rispondono entro 2 giorni
-
[DEFECT] AsciiDoc builders write a stray ## before every schema member when the namespace prefixes file binds the schema's own namespaceForse già presa @Beehtrix l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
cimug-org/CIMTool#427 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
userRaised
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
eclipse-openj9/openj9#25285 ·
I maintainer di solito rispondono entro 1 giorno