[ 
https://issues.apache.org/jira/browse/AVRO-3825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kousuke Saruta updated AVRO-3825:
---------------------------------
    Description: 
According to the specification, each portion of a namespace separated by dot 
should be [a-zA-Z_][a-zA-Z0-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}

  was:
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}


> Disallow invalid namespaces
> ---------------------------
>
>                 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
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> According to the specification, each portion of a namespace separated by dot 
> should be [a-zA-Z_][a-zA-Z0-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)

Reply via email to