[ 
https://issues.apache.org/jira/browse/AVRO-3827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kousuke Saruta updated AVRO-3827:
---------------------------------
    Description: 
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.

  was:
If a schema contains a record and some of its fields have the same field name, 
such schema should not be allowed.

{code}
{
  "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.


> 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
>
> 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)

Reply via email to