infer schema strategy attaches a schema to a raw before/after part

Aperta
#191 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
backend

Direzione di ricerca

Read the processor middleware’s infer and extend schema encoding paths, then inspect the regression test added for the related extend behavior in issue #190. Decide whether infer should fail closed or retain its current behavior with documentation, following the deprecation policy. Done means the chosen behavior is covered by a regression test, or the limitation is documented.

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

Descrizione

The default (infer) schema encode strategy in the processor middleware attaches a schema to a record whose before or after part is still non-empty raw data, without encoding or rejecting that part. A consumer that decodes the raw part with the attached schema either fails or, when fields were removed, can decode the old bytes into shifted values.

The opt-in extend strategy now fails closed in this case (#190). infer keeps its current behaviour because changing it changes the default output.

To decide: fail closed in infer too (a behaviour change for existing processors, announce and warn first per the deprecation policy), or keep infer as is and document the limitation. A fix ships with a regression test that fails without it.

Lingua principale
Go
Stelle
1
Fork
1
Merge medio
11m
PR unite (30g)
5

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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-processor-sdk

Tutte le issue di ConduitIO/conduit-processor-sdk

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.