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

2023-08-04 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/AVRO-3820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated AVRO-3820:
-
Labels: pull-request-available  (was: )

> 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
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)


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

2023-08-04 Thread Martin Tzvetanov Grigorov (Jira)


 [ 
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)