You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "yongkyunlee (via GitHub)" <gi...@apache.org> on 2025/08/30 00:23:23 UTC
[I] [Avro] Decoder panics on flush when schema contains map whose value is non-nullable [arrow-rs]
yongkyunlee opened a new issue, #8253:
URL: https://github.com/apache/arrow-rs/issues/8253
**Describe the bug**
When you try to decode data with schema like
```json
{
"name": "map_of_strings",
"type": {
"type": "map",
"values": "string"
},
"doc": "Map with string values"
}
```
Decoder fails with the following error
```
InvalidArgumentError("column types must match schema types, expected Map(Field { name: \"entries\", data_type: Struct([Field { name: \"key\", data_type: Utf8, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: \"value\", data_type: Utf8, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }]), nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }, false) but found Map(Field { name: \"entries\", data_type: Struct([Field { name: \"key\", data_type: Utf8, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: \"value\", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }]), nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }, false) at column index 0")
```
**To Reproduce**
You can reproduce with a simple unit test with the schema above.
**Additional context**
--
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: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Avro] Decoder panics on flush when schema contains map whose value is non-nullable [arrow-rs]
Posted by "jecsand838 (via GitHub)" <gi...@apache.org>.
jecsand838 commented on issue #8253:
URL: https://github.com/apache/arrow-rs/issues/8253#issuecomment-3239493602
@yongkyunlee Thank you for making this issue!
I already have this change covered in an open PR: https://github.com/apache/arrow-rs/pull/8220
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Avro] Decoder panics on flush when schema contains map whose value is non-nullable [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #8253:
URL: https://github.com/apache/arrow-rs/issues/8253#issuecomment-3261710441
> [@yongkyunlee](https://github.com/yongkyunlee) [@alamb](https://github.com/alamb) This issue should be resolved now with [#8220](https://github.com/apache/arrow-rs/pull/8220) merged.
Closing this issue -- please reopen if it isn't fixed
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Avro] Decoder panics on flush when schema contains map whose value is non-nullable [arrow-rs]
Posted by "jecsand838 (via GitHub)" <gi...@apache.org>.
jecsand838 commented on issue #8253:
URL: https://github.com/apache/arrow-rs/issues/8253#issuecomment-3261007928
@yongkyunlee @alamb This issue should be resolved now with #8220 merged.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Avro] Decoder panics on flush when schema contains map whose value is non-nullable [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #8253: [Avro] Decoder panics on flush when schema contains map whose value is non-nullable
URL: https://github.com/apache/arrow-rs/issues/8253
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org