subhashb opened a new pull request #1181: URL: https://github.com/apache/avro/pull/1181
This PR adds support for generating fingerprints from schema objects. Schema fingerprints are extracted by invoking the `fingerprint` method on the schema object. By default, fingerprints are generated with the CRC-64 algorithm. Optionally, an algorithm, specified by the algorithm name used by `hashlib`, can be supplied. *All algorithms supported by hashlib are made available*, but Avro recommends using one among **CRC-32**, **MD5**, and **SHA256** as per needs. Make sure you have checked _all_ steps below. ### Jira - [x] My PR addresses the following [Avro Jira](https://issues.apache.org/jira/browse/AVRO/) issues and references them in the PR title. - https://issues.apache.org/jira/browse/AVRO-1938 ### Tests - [x] My PR adds the following unit tests: - Fingerprint test cases in `FingerprintTestCase` class - Miscellaneous fingerprint test cases in `TestMisc` class: `test_unsupported_fingerprint_algorithm` and `test_less_popular_fingerprint_algorithm` test methods ### Commits - [x] My commits all reference Jira issues in their subject lines. In addition, my commits follow the guidelines from "[How to write a good git commit message](https://chris.beams.io/posts/git-commit/)": 1. Subject is separated from body by a blank line 1. Subject is limited to 50 characters (not including Jira issue reference) 1. Subject does not end with a period 1. Subject uses the imperative mood ("add", not "adding") 1. Body wraps at 72 characters 1. Body explains "what" and "why", not "how" ### Documentation - [x] In case of new functionality, my PR adds documentation that describes how to use it. Functionality confirms to Avro Specification. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
