[
https://issues.apache.org/jira/browse/AVRO-3830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17754434#comment-17754434
]
ASF subversion and git services commented on AVRO-3830:
-------------------------------------------------------
Commit 56f08b8334709fcfa06466ebaf9d0def39513e0f in avro's branch
refs/heads/branch-1.11 from Kousuke Saruta
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=56f08b833 ]
AVRO-3830: [Rust] Handle namespace properly if a name starts with dot (#2437)
* AVRO-3830: [Rust] Handle namespace properly if a name starts with dot.
* AVRO-3830: Name::get_name_and_namespace() does not need to be package-private
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
---------
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Co-authored-by: Martin Tzvetanov Grigorov <[email protected]>
(cherry picked from commit 56a0e55d7a137844e3d23acde1a7aec6ceb353c1)
> Handle namespace properly if a name starts with dot
> ---------------------------------------------------
>
> Key: AVRO-3830
> URL: https://issues.apache.org/jira/browse/AVRO-3830
> Project: Apache Avro
> Issue Type: Bug
> Affects Versions: 1.12.0
> Reporter: Kousuke Saruta
> Priority: Major
> Labels: pull-request-available
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> The specification says about the name and namespace like as follows.
> ??The empty string may also be used as a namespace to indicate the null
> namespace??
> ??If the name specified contains a dot, then it is assumed to be a fullname,
> and any namespace also specified is ignored??
> According to this specification, if a name in a name field starts with a dot,
> it's considered that the namespace is null and the corresponding namespace
> field should be ignored.
> For example, given the following schema.
> {code}
> {
> "name": ".record1",
> "namespace": "ns1",
> "type": "record",
> "fields": []
> }
> {code}
> The name and namespace should be "record1" and null respectively.
> But the namespace is considered as "ns1" in the current Rust binding .
--
This message was sent by Atlassian Jira
(v8.20.10#820010)