AbsaOSS / AbsaOSS/spark-commons

Add support for serialization into`additionalInfo: AdditionalInfo` from `Map`, `case class`, other collections...

Aperta
#90 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement good first issue
Lingua principale
Scala
Stelle
7
Fork
0
Merge medio
19h 57m
PR unite (30g)
1

Descrizione

## Background
Right now the `AdditionalInfo` type in error handling is just a synonym for `String`, while the intention is it to be a JSON.
Right now though any garbage can be put into the field.

## Feature
Turn the type into a value class with a private constructor and an apply method that will serialize provided objects into json.
Of course keep a constructor to allow an empty `AdditionalInfo`.
Also create an implicit conversion from the value class to `String` for easy push into Spark,

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.