Avro
  1. Avro
  2. AVRO-1535

permit aliases to null namespace

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.7
    • Component/s: java
    • Labels:
      None

      Description

      It is impossible to specify an alias to a record name that does not have a namespace from a record name that does have an alias. This is because aliases without a specified namespace are assumed to be in the namespace of the record that contains the alias.

      1. AVRO-1535.patch
        2 kB
        Doug Cutting

        Activity

        Hide
        Hudson added a comment -

        SUCCESS: Integrated in AvroJava #461 (See https://builds.apache.org/job/AvroJava/461/)
        AVRO-1535. Java: Make the name .X to refer to X in the null namespace. (cutting: rev 1607189)

        • /avro/trunk/CHANGES.txt
        • /avro/trunk/doc/src/content/xdocs/spec.xml
        • /avro/trunk/lang/java/avro/src/main/java/org/apache/avro/Schema.java
        • /avro/trunk/lang/java/ipc/src/test/java/org/apache/avro/TestSchema.java
        Show
        Hudson added a comment - SUCCESS: Integrated in AvroJava #461 (See https://builds.apache.org/job/AvroJava/461/ ) AVRO-1535 . Java: Make the name .X to refer to X in the null namespace. (cutting: rev 1607189) /avro/trunk/CHANGES.txt /avro/trunk/doc/src/content/xdocs/spec.xml /avro/trunk/lang/java/avro/src/main/java/org/apache/avro/Schema.java /avro/trunk/lang/java/ipc/src/test/java/org/apache/avro/TestSchema.java
        Hide
        Doug Cutting added a comment -

        I committed this, also clarifying the specification. The null namespace was already supported by implementations but not well described in the spec.

        Show
        Doug Cutting added a comment - I committed this, also clarifying the specification. The null namespace was already supported by implementations but not well described in the spec.
        Hide
        ASF subversion and git services added a comment -

        Commit 1607189 from Doug Cutting in branch 'avro/trunk'
        [ https://svn.apache.org/r1607189 ]

        AVRO-1535. Java: Make the name .X to refer to X in the null namespace.

        Show
        ASF subversion and git services added a comment - Commit 1607189 from Doug Cutting in branch 'avro/trunk' [ https://svn.apache.org/r1607189 ] AVRO-1535 . Java: Make the name .X to refer to X in the null namespace.
        Hide
        Doug Cutting added a comment -

        Some tools are not namespace-aware, so it's important to be able to interoperate with data whose schema has no namespace. A dot-prefixed should either refer to the null namespace or be an error. The former interpretation resolves this issue, so should be preferred.

        I'll commit this soon unless there are objections.

        Show
        Doug Cutting added a comment - Some tools are not namespace-aware, so it's important to be able to interoperate with data whose schema has no namespace. A dot-prefixed should either refer to the null namespace or be an error. The former interpretation resolves this issue, so should be preferred. I'll commit this soon unless there are objections.
        Hide
        Doug Cutting added a comment -

        Here's a patch that fixes this, by interpreting names of the form ".X" to refer to "X" in the null namespace.

        Show
        Doug Cutting added a comment - Here's a patch that fixes this, by interpreting names of the form ".X" to refer to "X" in the null namespace.

          People

          • Assignee:
            Doug Cutting
            Reporter:
            Doug Cutting
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development