[GitHub] [avro] sarutak opened a new pull request, #2456: AVRO-3837: [Rust] Disallow invalid namespaces for the Rust binding

2023-08-19 Thread via GitHub


sarutak opened a new pull request, #2456:
URL: https://github.com/apache/avro/pull/2456

   AVRO-3837
   
   ## What is the purpose of the change
   This PR fixes an issue that `namespace` the Rust binding wrongly accept 
invalid namespaces in `namespace` fields, while invalid namespaces in `name` 
fields don't accepted.
   
   For example, the following schema is not accepted as expected.
   ```
   {
 "name": "ns1.invalid-ns.record1",
 "type": "record"
 "fields": []
   }
   ```
   
   But the following schema is wrongly accepted.
   ```
   {
 "name": "record1",
 "namespace": "ns1.invalid-ns",
 "type": "record",
 "fields": []
   }
   ```
   
   ## Verifying this change
   Added new tests and all tests passed with `cargo test --workspace`.
   
   ## Documentation
   
   - Does this pull request introduce a new feature? (no)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@avro.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[jira] [Created] (AVRO-3837) Disallow invalid namespace for the Rust binding

2023-08-19 Thread Kousuke Saruta (Jira)
Kousuke Saruta created AVRO-3837:


 Summary: Disallow invalid namespace for the Rust binding
 Key: AVRO-3837
 URL: https://issues.apache.org/jira/browse/AVRO-3837
 Project: Apache Avro
  Issue Type: Bug
  Components: rust
Affects Versions: 1.12.0
Reporter: Kousuke Saruta


The current Rust binding doesn't accept invalid namespaces if such namespaces 
are in name field.

{code}
{
  "name": "ns1.invalid-ns.record1",
  "type": "record"
  "fields": []
}
{code}

But if a invalid namespace in namespace field doesn't validate.

{code}
  "name": "record1",
  "namespace": "ns1.invalid-ns",
  "type": "record",
  "fields": []
}
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[GitHub] [avro] RyanSkraba merged pull request #2432: AVRO-3819: Centralize system properties that limit allocations

2023-08-19 Thread via GitHub


RyanSkraba merged PR #2432:
URL: https://github.com/apache/avro/pull/2432


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@avro.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org