AbsaOSS / AbsaOSS/cobrix

COMP-3 field is being read with a value 3 less than expected value

Abierto
#639 3 comentarios 0 reacciones 0 asignados Ver en GitHub
question
Lenguaje dominante
Scala
Estrellas
170
Forks
96
Merge medio
57 min
PR fusionados (30 d)
2

Descripción

Trying to read a file which has the following
07 IM-LKUP-LM-HH-MM-SS PIC S9(7) COMP-3.

The resulting value for each record is coming up with a value thats 3 more than expected.
For instance instead of seeing 131444 - its resulting in 131441
Happens for every single record - all other fields are being parsed correctly - this is the only COMP field.

Added the following option
.option("debug", "hex")
and I see
{131441, 0131441F}
Here is what I see in the file using a hex editor: (ignore double quotes)
"‘à"

Any idea why this is happening and how to fix it.

Is this because of an unsigned COMP field and the sign value should be ignored but the code is somehow including it in the value?

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.