[Bug]: [Python] HistogramResult.p95 raises AttributeError because Histogram has no p95()
I maintainer di solito rispondono entro 2 giorni
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
Direzione di ricerca
The issue identifies sdks/python/apache_beam/metrics/cells.py and apache_beam.utils.histogram.Histogram. Read the percentile properties and the existing p50(), p90() and p99() methods, then run the relevant Python histogram and metrics tests. Done when HistogramResult.p95 returns the interpolated 95th percentile and the tests cover it; pull request #41710 is already open.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happened?
HistogramResult.p95 in sdks/python/apache_beam/metrics/cells.py returns self.data.histogram.p95(), but apache_beam.utils.histogram.Histogram only defines p50(), p90() and p99(). Reading .p95 on a histogram metric result therefore raises AttributeError, while .p90 and .p99 work.
Reproduction
from apache_beam.metrics.cells import HistogramData, HistogramResult
from apache_beam.utils.histogram import Histogram, LinearBucket
histogram = Histogram(LinearBucket(0, 1, 100))
histogram.record(*range(100))
result = HistogramResult(HistogramData(histogram))
print(result.p90, result.p99) # 90.0 99.0
print(result.p95)
# AttributeError: 'Histogram' object has no attribute 'p95'. Did you mean: 'p90'?
Seen on master (f168ee3f6def2e8cf325d40337c3796375366806), Python 3.12.
Expected
result.p95 returns the linearly interpolated 95th percentile, like p90/p99 (95.0 here).
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components
- Component: Python SDK
- 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