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

Enum Classes In Kafka #49

Open
1 task done
JeffreyHuynh1 opened this issue Mar 20, 2021 · 1 comment
Open
1 task done

Enum Classes In Kafka #49

JeffreyHuynh1 opened this issue Mar 20, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JeffreyHuynh1
Copy link
Contributor

JeffreyHuynh1 commented Mar 20, 2021

Description

  • Situation:
    • The avro classes with enum types cause an error when serializing and deserializing to json
      • This causes errors when going back and forth from python dictionary to avro classes ( want this capability to use the avro classes for validation )
    • We can turn the avro types of that field to a string type, but then we lose the validation aspect
  • Result:
    • In order to use the avro enum classes, we have to manually create an instance of the enum type on serialization/ deserialization
    • More work and time consuming

Tasks

  • Find the best way to incorporate these avro enum classes
    • pyavro-gen generation classes may be an option?
@JeffreyHuynh1 JeffreyHuynh1 added the bug Something isn't working label Mar 20, 2021
@JeffreyHuynh1 JeffreyHuynh1 self-assigned this Mar 20, 2021
@JeffreyHuynh1
Copy link
Contributor Author

Created a json encoder class to hand serialization/deserialization for the avro enum classes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant