Skip to content

Commit 9ba492a

Browse files
authored
Merge pull request confluentinc#228 from fyndiq/unionschema_hash_func
Add hash func for UnionSchema
2 parents f439c2a + 11b5b84 commit 9ba492a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

confluent_kafka/avro/load.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ def _hash_func(self):
4343

4444
schema.RecordSchema.__hash__ = _hash_func
4545
schema.PrimitiveSchema.__hash__ = _hash_func
46+
schema.UnionSchema.__hash__ = _hash_func
4647
except ImportError:
4748
schema = None

0 commit comments

Comments
 (0)