-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
Describe the bug
There is a bug in arrow-avro
's avro to arrow type conversion with type reuse.
To Reproduce
When you try to run make_data_type
from the following avro schema with named type reuse, the code panics.
{
"type": "record",
"name": "Sample",
"namespace": "test",
"fields": [
{
"name": "key",
"type": "string"
},
{
"name": "nested",
"type": {
"type": "record",
"name": "Nested",
"fields": [
{
"name": "nested_int",
"type": "int"
}
]
}
},
{
"name": "nestedAgain",
"type": "Nested"
},
{
"name": "nestedArray",
"type": {
"type": "array",
"items": "Nested"
}
},
{
"name": "nestedMap",
"type": {
"type": "map",
"values": "Nested"
}
}
]
}