You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/05/16 13:20:00 UTC
[jira] [Commented] (AVRO-3518) Rust: Represent aliases as Name instead of String
[ https://issues.apache.org/jira/browse/AVRO-3518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17537535#comment-17537535 ]
ASF subversion and git services commented on AVRO-3518:
-------------------------------------------------------
Commit 7ac2f6a4c8aca9f05df1eb0ae99d06826efcf5a3 in avro's branch refs/heads/avro-3518-use-Name-for-Alias from Martin Tzvetanov Grigorov
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=7ac2f6a4c ]
AVRO-3518: Introduce a new type 'Alias'
It uses Newtype pattern and wraps Name. This way it is easier to control
how it is being (de)serialized
Until now only Schema::Record serialized its aliases to JSON. Now this
is being done for all named schemata (Schema::Enum and Schema::Fixed)
Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
> Rust: Represent aliases as Name instead of String
> -------------------------------------------------
>
> Key: AVRO-3518
> URL: https://issues.apache.org/jira/browse/AVRO-3518
> Project: Apache Avro
> Issue Type: Improvement
> Components: rust
> Reporter: Martin Tzvetanov Grigorov
> Assignee: Martin Tzvetanov Grigorov
> Priority: Major
>
> Currently Aliases is an Option<Vec<String>>.
> Since an alias could have a namespace it would be better to use apache_avro::schema::Name for it instead of String.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)