You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2021/04/26 12:51:02 UTC
[jira] [Closed] (ARROW-11936) Rust/Java incorrect serialization of
Struct wrapped Int8Dictionary
[ https://issues.apache.org/jira/browse/ARROW-11936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Lamb closed ARROW-11936.
-------------------------------
Resolution: Invalid
> Rust/Java incorrect serialization of Struct wrapped Int8Dictionary
> ------------------------------------------------------------------
>
> Key: ARROW-11936
> URL: https://issues.apache.org/jira/browse/ARROW-11936
> Project: Apache Arrow
> Issue Type: Bug
> Components: Java, Rust
> Affects Versions: 3.0.0
> Reporter: Justin
> Priority: Major
> Labels: serialization
>
> Using rust, serialized datatype to a file with a schema of
> {code:java}
> Field { name: "val", data_type: Struct([Field { name: "val", data_type: Utf8, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: None }]), nullable: false, dict_id: 0, dict_is_ordered: false, metadata: None }{code}
> Using a java client to read the serialized datatype results in a schema of
> {code:java}
> Schema<val: Struct<val: Utf8 not null> not null>{code}
> whilst calling ArrowFileReader.loadNextBatch() results in
> {code:java}
> Exception in thread "main" java.util.NoSuchElementExceptionException in thread "main" java.util.NoSuchElementException at java.base/java.util.ArrayList$Itr.next(ArrayList.java:1000) at org.apache.arrow.vector.VectorLoader.loadBuffers(VectorLoader.java:81) at org.apache.arrow.vector.VectorLoader.loadBuffers(VectorLoader.java:99) at org.apache.arrow.vector.VectorLoader.load(VectorLoader.java:61) at org.apache.arrow.vector.ipc.ArrowReader.loadRecordBatch(ArrowReader.java:205) at org.apache.arrow.vector.ipc.ArrowFileReader.loadNextBatch(ArrowFileReader.java:153)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)