Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3827

Disallow duplicate field names

    XMLWordPrintableJSON

Details

    Description

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

      {
        "name": "my_schema",
        "type": "record",
        "fields": [
          {
            "name": "f1",
            "type": {
              "name": "a",
              "type": "record",
              "fields": []
            }
          },  {
            "name": "f1",
            "type": {
              "name": "b",
              "type": "record",
              "fields": []
            }
          }
        ]
       }
      

      But the current Rust binding accept.

      Attachments

        Issue Links

          Activity

            People

              sarutak Kousuke Saruta
              sarutak Kousuke Saruta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h