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

AVRO-1737 Implement Hashable for Schema #2367

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

kojiromike
Copy link
Contributor

@kojiromike kojiromike commented Jul 18, 2023

What is the purpose of the change

AVRO-1737 : Implement Hashable for Schema. This will ensure that schema can be members of a set or keys in a dictionary.

Also see the python documentation.

Verifying this change

Unit tests have been added to ensure schema are hashable.

Documentation

  • Does this pull request introduce a new feature? (yes)
  • If yes, how is the feature documented? No additional documentation has been added, because this is a low-level API feature that is normal Python behavior.

lang/py/avro/schema.py Fixed Show fixed Hide fixed
@kojiromike kojiromike force-pushed the avro-1737 branch 2 times, most recently from 1db4004 to 7781833 Compare July 19, 2023 00:30
A hashable thing can be a member of a set or a key in a dictionary.
@kojiromike kojiromike changed the title AVRO-1737 Test that Schema are Hashable AVRO-1737 Implement Hashable for Schema Jul 19, 2023
@kojiromike kojiromike marked this pull request as ready for review July 19, 2023 01:17
@kojiromike kojiromike merged commit ea1ed80 into apache:master Jul 20, 2023
20 checks passed
@kojiromike kojiromike deleted the avro-1737 branch July 20, 2023 14:55
RanbirK pushed a commit to RanbirK/avro that referenced this pull request May 13, 2024
A hashable thing can be a member of a set or a key in a dictionary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant