ZIO streams: a typed error channel instead of Throwable?
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- scala
- Ambito
- backend-api-design
Direzione di ricerca
Read docs/code-review-2026.md item 5 and inspect ZIOTable.streamFile, the other stream methods, and the kafka-zio pipeline signatures. Decide whether to adopt a typed error channel and define its error types and conversions; done means the API direction is settled, with the minor release and release note implications recorded.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
The 2.1.0 plan (docs/code-review-2026.md, streaming, item 5) said: "Consider a typed error channel for zio (e.g. ZStream[Any, ParserException, Row]) rather than Throwable." This was never decided. ZIOTable.streamFile and the other stream methods still give ZStream[Any, Throwable, parser.Row], and the Kafka pipelines are ZPipeline[Producer, Throwable, X, RecordMetadata].
To decide
- A typed error channel lets callers handle parse failures differently from I/O failures. For example, a
TableParserExceptionfor a bad row versus anIOExceptionfor a missing file, perhaps as a small sealed error type. - It adds conversions wherever ZIO code meets
Throwable(zio-kafka, file I/O), and it changes the API of the zio and kafka-zio modules. - fs2 has no equivalent (its error channel is always
Throwable), so the two modules would differ.
If adopted, it changes the API, so it belongs in a minor release, with a release note.
Release
Assuming the PVP version scheme (#122): a point release (x.y.Z) must stay binary compatible, and a minor release (x.Y.0) may break compatibility, with a release note.
Minor release, breaking. It changes the signatures of ZIOTable's stream methods and the kafka-zio pipelines, which breaks both source and binary compatibility, so it needs a release note. (Under the old early-semver scheme, it would have needed 3.0.0.)
- Lingua principale
- Scala
- Stelle
- 11
- Fork
- 4
- Merge medio
- 2h 40m
- PR unite (30g)
- 44
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 rchillyard/TableParser
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 91/100
rchillyard/TableParser#132 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di rchillyard/TableParser
Issue simili
-
area:scripts priority:P2 status:backlog
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
KD5UJC-XYZ/scarab#1170 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
zio/zio-telemetry#1288 ·
I maintainer di solito rispondono entro 1 giorno
-
? - Needs Triage audit audit_4.3.0 audit_5.0.0
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
NVIDIA/cudf-spark#16965 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
valkey-io/valkey-glide#7745 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno