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

Enclosing namespace should be inherited to the inner named types if they have no their own namespaces

    XMLWordPrintableJSON

Details

    Description

      Given we have a schema like as follows.

      {
          "namespace": "my_ns",
          "type": "record",
          "aliases": ["my_alias"],
          "name": "my_schema",
          "fields": [
              {
                  "name": "f1",
                  "type": {
                      "name": "enum1",
                      "type": "enum",
                      "symbols": ["a"]
                  }
              }
          ]
      }
       

      The canonical form of this schema should be

      {"name":"my_ns.my_schema","type":"record","fields":[{"name":"f1","type":{"name":"my_ns.enum1","type":"enum","symbols":["a"]}}]}
      

      But with the current Rust binding, enum1 doesn't inherit the enclosing namespace "my_ns".

      {"name":"my_ns.my_schema","type":"record","fields":[{"name":"f1","type":{"name":"enum1","type":"enum","symbols":["a"]}}]}
      

      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 - 1h
                  1h