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

Don't allow invalid field names

    XMLWordPrintableJSON

Details

    Description

      Given we have a schema where a field name doesn't match [A-Za-z_][A-Za-z0-9_]* like f1.x.

      {
        "name": "my_record",
        "type": "record",
        "fields": [
          {
            "name": "f1.x",
            "type": {
              "name": "my_enum",
              "type": "enum",
              "symbols": ["a"]
            }
          }
        ]
       }
      

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

       

      Spec: https://avro.apache.org/docs/1.11.1/specification/#names

      Attachments

        Issue Links

          Activity

            People

              sarutak Kousuke Saruta
              sarutak Kousuke Saruta
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 40m
                  40m