Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to capture bad records while using from_avro in abris #312

Open
Tarannump opened this issue Oct 27, 2022 · 3 comments
Open

How to capture bad records while using from_avro in abris #312

Tarannump opened this issue Oct 27, 2022 · 3 comments

Comments

@Tarannump
Copy link

I have use case to capture the bad records and store it in a separate location for future reference. Is it possible to get the records which are not deserialised instead of dropping them?

@cerveada
Copy link
Collaborator

You can use exception handlers introduced in this PR: #290

You will have to implement your own handler that will store the records though.

@Tarannump
Copy link
Author

Thanks @cerveada for your response. We are using Glue Streaming ETL job which contains spark 3.1.1. Based on the PR looks like exception handlers are added in abris 6.3.0 which has spark 3.2.1. Is it possible to get the same feature in abris 5 as well?

@kevinwallimann
Copy link
Collaborator

Hi @Tarannump Unfortunately we don't have the capacity to backport the feature to ABRiS 5. Of course, you are welcome to fork the repo or submit a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants