[
https://issues.apache.org/jira/browse/AVRO-3820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Tzvetanov Grigorov updated AVRO-3820:
Description:
Given we have a schema where a field name doesn't match [A-Za-z_][A-Za-z0-9_]*
like f1.x.
{code:java}
{
"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.
Spec: https://avro.apache.org/docs/1.11.1/specification/#names
was:
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.
> 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
>Priority: Major
>
> Given we have a schema where a field name doesn't match
> [A-Za-z_][A-Za-z0-9_]* like f1.x.
> {code:java}
> {
> "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.
>
> Spec: https://avro.apache.org/docs/1.11.1/specification/#names
--
This message was sent by Atlassian Jira
(v8.20.10#820010)