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

Epic 8349 certify s3/issue 8556 s3 v2 fields #22

Closed

Conversation

johnny-schmidt
Copy link

@johnny-schmidt johnny-schmidt commented Jul 15, 2024

⚠️ Please create this PR against airbytehq/json-avro-converter as the base repository, instead of the default allegro/json-avro-converter.⚠️

Summary

This is to provide support for capturing field-level conversion failures when converting from json to avro. It adds a FieldConversionFailureListener option to the record reader, which provides a hook for replacing the field value and adding metadata to the record when a failure occurs.

Most of the changes here are to support that. Additionally I had to thread the original field name through the reader so that it could be added to the metadata if needed. (Sometimes the field name is edited to make it avro compatible.)

Checklist

  • Write unit tests
  • Make sure there is no logging in the Json / Avro conversion code
  • Update documentation in README.md

Reviewers

@johnny-schmidt
Copy link
Author

Removed assignees because I need to implement @stephane-airbyte 's requested changes, and I might tweak it a bit for safety purposes

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

Successfully merging this pull request may close these issues.

3 participants