AbsaOSS / AbsaOSS/cobrix

Binary file with Endianness is expressed as big-endian and field PIC.

Abierto
#627 4 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

we are migrating a process developed in dataStage to scala, using bookshelves. The Copyboock is defined and we manage to read the file in DF with select. But the fields that in the original process we read as binary (Raw) we fail to interpret correctly.

in the DS process, is define like

![image](https://github.com/AbsaOSS/cobrix/assets/114859405/37da27b6-75c2-4b6a-9bd0-c5823ff8b19b)
this is loaded into a database, converting it to hexadecimal, and we can see it, for example so:

![image](https://github.com/AbsaOSS/cobrix/assets/114859405/7f33d855-fa53-4f64-9462-8c5896b2e5e4)

but in DF, we do not know how to treat it and we see it like this:
![image](https://github.com/AbsaOSS/cobrix/assets/114859405/372f337f-c257-4877-9264-7b254958ae16)

.withColumn("CMAVCRPE_P55_TEXT_ori", (col("CMAVCRPE_P55_TEXT")))
.withColumn("CMAVCRPE_P55_TEXT_hex", hex(col("CMAVCRPE_P55_TEXT")))

![image](https://github.com/AbsaOSS/cobrix/assets/114859405/843770b8-8829-4701-bb4e-dd4675ec3128)
Then, we think that we are not performing the reading correctly and that bits are lost.

![image](https://github.com/AbsaOSS/cobrix/assets/114859405/8611f296-926e-47e8-80c8-a64551b0e4dd)
Thank you

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.