avro.encode fromRecord: pin the local-timestamp check's recursion guard and fail-closed branch

Aperta
#3,341 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go
Ambito
backend

Direzione di ricerca

Start by reading the avro.encode fromRecord local-timestamp check on the feat/avro-encode-preserve-schema branch and its existing tests. Add coverage for both recursive record cases and for schemas that fail to parse or are not records; confirm the latter reports “schema could not be checked.”

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Follow-ups from the round-4 review of the avro.encode fromRecord local-timestamp check (feat/avro-encode-preserve-schema):

  1. Pin the recursion guard in hasLocal with tests: a recursive record whose local-timestamp field comes after the self-reference, and a recursive record with no local-timestamp field. Without the guard either case would recurse without bound.
  2. Test the fail-closed branch for a schema that does not parse or is not a record (not json, "long").
  3. Give that branch its own message ("schema could not be checked") instead of the (record) field message, which suggests a local-timestamp field exists.
Lingua principale
Go
Stelle
617
Fork
69
Merge medio
8h 5m
PR unite (30g)
122

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ConduitIO/conduit

Tutte le issue di ConduitIO/conduit

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.