avro
avro copied to clipboard
AVRO-3532: Naming rules
AVRO-3532 : Documentation give strict naming rules for field name, and Java implementation allow more than this (it allows accents : "éhôÄç", chinese alphabet : "歳以上") This PR aims to formalize the rules to officially allow this kind of names (by adding a Unit Test in Java and update rust code to accept it (with a unit test as well).
I took the liberty of changing these two PRs (https://github.com/apache/avro/pull/1787 and https://github.com/apache/avro/pull/1798) to draft status, just to prevent any accidents!
These behaviour changes should be merged after a change to the specification, and we really should have a stronger consensus around the whether this is the right thing to do before changing the spec.
https://issues.apache.org/jira/browse/AVRO-3900 added an API to provide custom name validators to the Rust SDK. By default it will use the specification rules but the user could provide custom impl if needed.