mzabaluev commented on issue #9231:
URL: https://github.com/apache/arrow-rs/issues/9231#issuecomment-3777448415
The inner element type gets resolved to this codec instance, which seems
correct for decoding non-nullable elements:
```
AvroDataType {
nullability: Some(
NullFirst,
),
metadata: {},
codec: Int32,
resolution: Some(
Union(
ResolvedUnion {
writer_to_reader: [
Some(
(
1,
Direct,
),
),
],
writer_is_union: false,
reader_is_union: true,
},
),
),
}
```
But when the array type codec is constructed, the resolution information on
the element type is lost:
```
AvroDataType {
nullability: Some(
NullFirst,
),
metadata: {},
codec: List(
AvroDataType {
nullability: Some(
NullFirst,
),
metadata: {},
codec: Int32,
resolution: None,
},
),
resolution: Some(
Union(
ResolvedUnion {
writer_to_reader: [
Some(
(
1,
Direct,
),
),
],
writer_is_union: false,
reader_is_union: true,
},
),
),
}
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]