Hi there,

I was going to submit a ticket on Jira, but I couldn't figure out how.  I'm
pretty sure I have found a bug in the Python Avro schema parser.  The Avro
docs (https://avro.apache.org/docs/1.11.1/specification/_print/#names) say
a name must be just letters numbers and underscores, but the python parser
accepts (at least) spaces for field names in a record.  Here's an example
schema with will fail the Java parser but pass the Python one:

{
"namespace": "avro",
"name": "record",
"type": "record",
"fields": [
    {"name": "time stamp", "type": "long", "logicalType":
"timestamp-millis"}
    ]
}

(tested on https://json-schema-validator.herokuapp.com/avro.jsp, and my
python install locally)

Hope that helps,
-James

Reply via email to