[
https://issues.apache.org/jira/browse/AVRO-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17569290#comment-17569290
]
Christophe Le Saec commented on AVRO-3584:
------------------------------------------
Rust unit test work :
{code}
Unable to find source-code formatter for language: rust. Available languages
are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go,
groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl,
php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
let schema_str_a = r#"{
"name": "A",
"type": "record",
"fields": [ {"name": "field_one", "type": "B"} ]
}"#;
let schema_str_b = r#"{
"name": "B",
"type": "record",
"fields": [ {"name": "field_one", "type": "A"} ]
}"#;
// we get Error::GetNameField if we put ["A", "B"] directly here.
let schema_str_c = r#"{
"name": "C",
"type": "record",
"fields": [ {"name": "field_one", "type": ["A", "B"]} ]
}"#;
let list = Schema::parse_list(&[schema_str_a, schema_str_b,
schema_str_c])
.unwrap();
{code}
> allow for mutual recursion in type definitions for all languages
> ----------------------------------------------------------------
>
> Key: AVRO-3584
> URL: https://issues.apache.org/jira/browse/AVRO-3584
> Project: Apache Avro
> Issue Type: Wish
> Reporter: Christophe Le Saec
> Priority: Major
>
> This idea is to allow AVRO to load schemas with recursion described like this:
> {code:json}
> {"name": "User", "type": "record", "fields": [{"name": "current_status",
> "type": "Status"}]}
> {"name": "Status", "type": "record", "fields": [{"name": "author", "type":
> "User"}]}
> {code}
> - Java : [AVRO-530|https://issues.apache.org/jira/browse/AVRO-530] is ready
> to checked (PR ready).
> - Rust : Unit test show that it already works (May be better to add a unit
> test in a PR).
> For others languages (C, C++, C#, Python ...);
--
This message was sent by Atlassian Jira
(v8.20.10#820010)