-
Notifications
You must be signed in to change notification settings - Fork 71
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
Avro references poc implementation using avro lib #987
base: avro_references2
Are you sure you want to change the base?
Avro references poc implementation using avro lib #987
Conversation
Instead of using avro unions, use avro lib (function `make_avsc_object()`) to merge together reference schemas and main schema. This is just a proof of concept, it does not support indirect references for example (schema1 --> schema2 --> schema3).
SCHEMA_PERSON_AGE_INT_LONG = { | ||
"type": "record", | ||
"name": "Person", | ||
"namespace": "com.netapp", | ||
"fields": [ | ||
{"name": "name", "type": "string"}, | ||
{"name": "age", "type": "long"}, | ||
{"name": "address", "type": "Address"}, | ||
# {"name": "address", "type": "Address"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented out indirect refs since they don't work, so that other tests can be executed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we don't need to support indirect refs, it's unclear if Schema Registry supports them
This is a proof of concept for implementing Avro reference using Avro python library.
I used the following PR (implementation using unions) as the base: #926
What works:
What does not work: