You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Kousuke Saruta (Jira)" <ji...@apache.org> on 2023/07/30 07:40:00 UTC
[jira] [Created] (AVRO-3818) Enclosing namespace should be inherited to the inner named types if they have no their own namespaces
Kousuke Saruta created AVRO-3818:
------------------------------------
Summary: Enclosing namespace should be inherited to the inner named types if they have no their own namespaces
Key: AVRO-3818
URL: https://issues.apache.org/jira/browse/AVRO-3818
Project: Apache Avro
Issue Type: Bug
Components: rust
Affects Versions: 1.12.0
Reporter: Kousuke Saruta
Given we have a schema like as follows.
{code}
{
"namespace": "my_ns",
"type": "record",
"aliases": ["my_alias"],
"name": "my_schema",
"fields": [
{
"name": "f1",
"type": {
"name": "enum1",
"type": "enum",
"symbols": ["a"]
}
}
]
}
{code}
The canonical form of this schema should be
{code}
{"name":"my_ns.my_schema","type":"record","fields":[{"name":"f1","type":{"name":"my_ns.enum1","type":"enum","symbols":["a"]}}]}
{code}
But with the current Rust binding, enum1 doesn't inherit the enclosing namespace "my_ns".
{code}
{"name":"my_ns.my_schema","type":"record","fields":[{"name":"f1","type":{"name":"enum1","type":"enum","symbols":["a"]}}]}
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)