Closed nsanglar closed 3 years ago
Hello, sorry right now there is no option in Abris to solve that. I created a ticket for it #183. For now the only option is to detect and replace/fix that row before Abris is called.
@nsanglar hey do you have a solution for your problem? I ran into a similar issue.
@moyphilip I currently have a fork of the project in which I apply a different logic here: https://github.com/AbsaOSS/ABRiS/blob/6520a91962708189b340c87b9dfa1c482f0d7480/src/main/scala/za/co/absa/abris/avro/sql/AvroDataToCatalyst.scala#L82
I just don't throw an exception but return an empty row and log some error. I guess this is quite specific to my use case, so I am not sure this would be appropriate to incoporate it upstream.
@nsanglar how did you manage to return an empty row in your use case? I have a reason to do the same in mine.
Hello!
I am currently facing the following issue:
I would like to be able to ignore such cases where deserialization fails, but am struggling to find a nice solution. Would you have any idea?