[
https://issues.apache.org/jira/browse/AVRO-1938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743968#comment-17743968
]
ASF subversion and git services commented on AVRO-1938:
-------------------------------------------------------
Commit 467466de77efdb03aa6df2924573b5c29306fd80 in avro's branch
refs/heads/branch-1.11 from Subhash Bhushan
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=467466de7 ]
AVRO-1938: Add fingerprinting support to Python implementation (#1181)
* AVRO-1938 Add support for fingerprinting schemas
With this change, Schema fingerprints can be extracted by
invoking the `fingerprint` method on the schema object. By default,
fingerprints will be generated with the CRC-64 algorithm. Optinally,
the algorithm can be supplied.
All algorithms supported by hashlib are available, but Avro
recommends using one among CRC-32, MD5, and SHA256 as per needs.
* AVRO-1938 Fix issue with AbstractSet typecheck
* Format with black
* Freeze Supported Algorithms Set
This commit addresses review comments and freezes the supported
fingerprinting algorithms set.
* Minor lint fix with black
* Address Typecheck issues with Frozenset
* Fold Fingerprint Mixin within Schema
Addresses PR 1181 review comments. Methods within Fingerprint mixin
have been made available at the module level, including static
variables used in fingerprinting. This PR has been synced with latest
master.
* Add type hints to fingerprint methods/variables
* Fix incorrect import sorting in schema.py to pass lint check
* Address @kojiromike Jul 16 review comments
* Address @kojiromike Jul 16 review comments - 2
* Address @kojiromike Jul 17 review comments
* Fix black lint issue
(cherry picked from commit f504265943d929bcf0ba3ed133de511eb601efd0)
> Python support for generating canonical forms of schema
> -------------------------------------------------------
>
> Key: AVRO-1938
> URL: https://issues.apache.org/jira/browse/AVRO-1938
> Project: Apache Avro
> Issue Type: Improvement
> Components: python
> Reporter: Erik Forsberg
> Assignee: Michael A. Smith
> Priority: Major
> Labels: pull-request-available
> Time Spent: 4h
> Remaining Estimate: 0h
>
> The python implementation(s) lack support for generating canonical forms of
> schema.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)