Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.11.1
Description
Avro permits Schema definitions to reference Types defined in other Schema files.
Currently these can be parsed with Schema:parse_list, but the output of this can't be used in Writer, Reader, (or to_avro_datum, from_avro_datum)
- These functions only take a single 'schema' and can't resolve the References
- Schema:parse_list puts in 'refs' for the external dependencies, but doesn't seem to populate the UnionSchema's, so they can be resolved.
Example of dependant schemas:
letschema_TypeA=r#"
{
"type": "record",
"namespace": "base.name.space",
"name": "MultiSchemaTestTypeA",
"fields":
[
,
{ "name": "c", "type":
, "default": {}
}
]
}
"#;
letschema_TypeB=r#"
{
"type": "record",
"namespace": "some.name.space",
"name": "MultiSchemaTestTypeB",
"fields":
[
,
{ "name": "e", "type": "int" }]
}
"#;
PR Created with a failing test: https://github.com/apache/avro/pull/1997
Attachments
Issue Links
- is duplicated by
-
AVRO-3763 [Rust] Improve Refs workflow
- Resolved
- links to