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

Handle namespace properly if a name starts with dot

    XMLWordPrintableJSON

Details

    Description

      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.

      {
        "name":  ".record1",
        "namespace": "ns1",
        "type": "record",
        "fields": []
      }
      

      The name and namespace should be "record1" and null respectively.
      But the namespace is considered as "ns1" in the current Rust binding .

      Attachments

        Issue Links

          Activity

            People

              sarutak Kousuke Saruta
              sarutak Kousuke Saruta
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 0.5h
                  0.5h