You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2023/08/10 07:30:00 UTC

[jira] [Commented] (AVRO-3827) Disallow duplicate field names

    [ https://issues.apache.org/jira/browse/AVRO-3827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17752664#comment-17752664 ] 

ASF subversion and git services commented on AVRO-3827:
-------------------------------------------------------

Commit 9de1895ffb74f927213ec604f5f62bbed81d4754 in avro's branch refs/heads/branch-1.11 from Kousuke Saruta
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=9de1895ff ]

AVRO-3827: [Rust] Disallow duplicate field names (#2433)

* AVRO-3827: [Rust] Disallow duplicate field names

* Reuse BTreeMap.

* Use the returned Option.

(cherry picked from commit 3deb73c840fe2b966cda0094f8114f47cf6b131e)


> Disallow duplicate field names
> ------------------------------
>
>                 Key: AVRO-3827
>                 URL: https://issues.apache.org/jira/browse/AVRO-3827
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: rust
>    Affects Versions: 1.12.0
>            Reporter: Kousuke Saruta
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> If a schema contains a record and some of its fields have the same field name, such schema should not be allowed.
> {code:java}
> {
>   "name": "my_schema",
>   "type": "record",
>   "fields": [
>     {
>       "name": "f1",
>       "type": {
>         "name": "a",
>         "type": "record",
>         "fields": []
>       }
>     },  {
>       "name": "f1",
>       "type": {
>         "name": "b",
>         "type": "record",
>         "fields": []
>       }
>     }
>   ]
>  }
> {code}
> But the current Rust binding accept.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)