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

Abierto
#191 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Go
Estrellas
1
Forks
1
Merge medio
11 min
PR fusionados (30 d)
5

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ConduitIO/conduit-processor-sdk

Todos los issues de ConduitIO/conduit-processor-sdk

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.