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/02 15:22:00 UTC

[jira] [Created] (AVRO-3820) Don't allow invalid field names

Kousuke Saruta created AVRO-3820:
------------------------------------

             Summary: Don't allow invalid field names
                 Key: AVRO-3820
                 URL: https://issues.apache.org/jira/browse/AVRO-3820
             Project: Apache Avro
          Issue Type: Bug
          Components: rust
    Affects Versions: 1.12.0
            Reporter: Kousuke Saruta


Given we have a schema where a field name doesn't match [A-Za-z_][A-Za-z0-9_]* like f1.x.
{code}
{
  "name": "my_record",
  "type": "record",
  "fields": [
    {
      "name": "f1.x",
      "type": {
        "name": "my_enum",
        "type": "enum",
        "symbols": ["a"]
      }
    }
  ]
 }
{code}

The current Rust binding accepts such a schema but it seems illegal.



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