[
https://issues.apache.org/jira/browse/AVRO-3939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17818467#comment-17818467
]
ASF subversion and git services commented on AVRO-3939:
-------------------------------------------------------
Commit d37c2a697008744fbc53901f5f4c4801ef9d829e in avro's branch
refs/heads/avro-3939-custom-schemata-comparators from Martin Tzvetanov Grigorov
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=d37c2a697 ]
AVRO-3939: Add more unit tests
Fix clippy error with Rust nightly, e.g.:
```
error: the item `TryFrom` is imported redundantly
--> avro/src/types.rs:34:5
|
34 | convert::TryFrom,
| ^^^^^^^^^^^^^^^^
-->
/rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
error: could not compile `apache-avro` (lib) due to 9 previous errors
```
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
> [Rust] Make it possible to use custom schema comparators
> --------------------------------------------------------
>
> Key: AVRO-3939
> URL: https://issues.apache.org/jira/browse/AVRO-3939
> Project: Apache Avro
> Issue Type: Improvement
> Components: rust
> Reporter: Martin Tzvetanov Grigorov
> Assignee: Martin Tzvetanov Grigorov
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Currently comparing two schemas for equality compares their canonical forms -
> https://github.com/apache/avro/blob/main/lang/rust/avro/src/schema.rs#L160.
> I.e. the schemas are first serialized to their canonical forms and then
> compared as strings.
> The main issue here is the performance! The serialization takes it time!
> Comparing the schemas field by field (following the same rules as the
> canonical forms -
> https://avro.apache.org/docs/1.11.1/specification/#parsing-canonical-form-for-schemas)
> will return as soon as a field is different. For example: record schema with
> a different name will return false without comparing all the fields.
> Another request by users is to compare the schemas even with fields which are
> not part of the canonical form, e.g. the custom attributes -
> https://github.com/apache/avro/pull/2708#discussion_r1467183416
--
This message was sent by Atlassian Jira
(v8.20.10#820010)