You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Kousuke Saruta (Jira)" <ji...@apache.org> on 2023/08/09 09:18:00 UTC

[jira] [Created] (AVRO-3825) Disallow invalid namespace

Kousuke Saruta created AVRO-3825:
------------------------------------

             Summary: Disallow invalid namespace
                 Key: AVRO-3825
                 URL: https://issues.apache.org/jira/browse/AVRO-3825
             Project: Apache Avro
          Issue Type: Bug
          Components: java
    Affects Versions: 1.12.0
            Reporter: Kousuke Saruta


According to the specification, each portion of a namespace separated by dot should be [a-z,A-Z,_][a-z,A-Z,0-9_].
[https://avro.apache.org/docs/1.11.1/specification/#names]
{code:java}
The name portion of the fullname of named types, record field names, and enum symbols must:

    start with [A-Za-z_]
    subsequently contain only [A-Za-z0-9_]

A namespace is a dot-separated sequence of such names. The empty string may also be used as a namespace to indicate the null namespace. Equality of names (including field names and enum symbols) as well as fullnames is case-sensitive.

The null namespace may not be used in a dot-separated sequence of names. So the grammar for a namespace is:

  <empty> | <name>[(<dot><name>)*]

{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)