[
https://issues.apache.org/jira/browse/AVRO-3452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17509893#comment-17509893
]
ASF subversion and git services commented on AVRO-3452:
-------------------------------------------------------
Commit 591fdf7f72ef1c0da66d510340fa557db853443b in avro's branch
refs/heads/avro-3452-manual-deseriaze-for-Name from Martin Tzvetanov Grigorov
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=591fdf7 ]
AVRO-3452: Move the use/import of serde::de::Error in a higher scope so that it
could be used for .map_err() call too
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
> [rust] Derive Deserialize produces invalid Name struct
> -------------------------------------------------------
>
> Key: AVRO-3452
> URL: https://issues.apache.org/jira/browse/AVRO-3452
> Project: Apache Avro
> Issue Type: Bug
> Components: rust
> Reporter: Jack Klamer
> Assignee: Martin Tzvetanov Grigorov
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The Name struct derives the trait Deserialize, which allows it to be
> constructed from a JSON as shown in this test:
> [https://github.com/apache/avro/blob/master/lang/rust/avro/tests/schema.rs#L1080]
> (called test_fullname_fullname_and_namespace_specified())
> However, the derive flow does not parse out the namespace from the name which
> is handled correctly from both Name::new() and Name:: parse() , which leads
> to a struct this is invalid against what is expected.
> It would be nice to remove the derive Deserialize trait, and replace with a
> custom implementation or just removing the implementation all together (and
> double checking for side effects of that)
--
This message was sent by Atlassian Jira
(v8.20.1#820001)