You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Litchy Soong (Jira)" <ji...@apache.org> on 2020/10/19 02:34:00 UTC

[jira] [Updated] (ARROW-10342) Arrow vector in Java(Scala) allocate byteBuffer error while read the bytes from Python pyarrow

     [ https://issues.apache.org/jira/browse/ARROW-10342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Litchy Soong updated ARROW-10342:
---------------------------------
    Description: 
I am using scala arrow 1.0.1 and pyarrow 1.0.1

Following error occurs when scala decode the byte that encoded from python.

tried to downgrade pyarrow to 0.17.0, 0.14.1, error still exists.

This is a loop function to decode the same data repeatedly. The error occurs sometimes, after an error occurs, following code could still work correctly.
{quote}

 Error stack trace java.nio.ByteBuffer.allocate(ByteBuffer.java:334)
 com.intel.analytics.zoo.shaded.arrow.vector.ipc.message.MessageSerializer.readMessage(MessageSerializer.java:692)
 com.intel.analytics.zoo.shaded.arrow.vector.ipc.message.MessageChannelReader.readNext(MessageChannelReader.java:57)
 com.intel.analytics.zoo.shaded.arrow.vector.ipc.ArrowStreamReader.readSchema(ArrowStreamReader.java:164)
 com.intel.analytics.zoo.shaded.arrow.vector.ipc.ArrowReader.initialize(ArrowReader.java:170)
 com.intel.analytics.zoo.shaded.arrow.vector.ipc.ArrowReader.ensureInitialized(ArrowReader.java:161)
com.intel.analytics.zoo.shaded.arrow.vector.ipc.ArrowReader.getVectorSchemaRoot(ArrowReader.java:63)
{quote}

 How to fix it?

  was:
I am using scala arrow 1.0.1 and pyarrow 1.0.1

Following error occurs when scala decode the byte that encoded from python.

tried to downgrade pyarrow to 0.17.0, 0.14.1, error still exists.

This is a loop function to decode the same data repeatedly. The error occurs sometimes, after an error occurs, following code could still work correctly.
```
Error stack trace java.nio.ByteBuffer.allocate(ByteBuffer.java:334)
com.intel.analytics.zoo.shaded.arrow.vector.ipc.message.MessageSerializer.readMessage(MessageSerializer.java:692)
com.intel.analytics.zoo.shaded.arrow.vector.ipc.message.MessageChannelReader.readNext(MessageChannelReader.java:57)
com.intel.analytics.zoo.shaded.arrow.vector.ipc.ArrowStreamReader.readSchema(ArrowStreamReader.java:164)
com.intel.analytics.zoo.shaded.arrow.vector.ipc.ArrowReader.initialize(ArrowReader.java:170)
com.intel.analytics.zoo.shaded.arrow.vector.ipc.ArrowReader.ensureInitialized(ArrowReader.java:161)
com.intel.analytics.zoo.shaded.arrow.vector.ipc.ArrowReader.getVectorSchemaRoot(ArrowReader.java:63)
```
How to fix it?


> Arrow vector in Java(Scala) allocate byteBuffer error while read the bytes from Python pyarrow
> ----------------------------------------------------------------------------------------------
>
>                 Key: ARROW-10342
>                 URL: https://issues.apache.org/jira/browse/ARROW-10342
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java, Python
>    Affects Versions: 0.14.1, 0.17.0, 1.0.1
>            Reporter: Litchy Soong
>            Priority: Major
>
> I am using scala arrow 1.0.1 and pyarrow 1.0.1
> Following error occurs when scala decode the byte that encoded from python.
> tried to downgrade pyarrow to 0.17.0, 0.14.1, error still exists.
> This is a loop function to decode the same data repeatedly. The error occurs sometimes, after an error occurs, following code could still work correctly.
> {quote}
>  Error stack trace java.nio.ByteBuffer.allocate(ByteBuffer.java:334)
>  com.intel.analytics.zoo.shaded.arrow.vector.ipc.message.MessageSerializer.readMessage(MessageSerializer.java:692)
>  com.intel.analytics.zoo.shaded.arrow.vector.ipc.message.MessageChannelReader.readNext(MessageChannelReader.java:57)
>  com.intel.analytics.zoo.shaded.arrow.vector.ipc.ArrowStreamReader.readSchema(ArrowStreamReader.java:164)
>  com.intel.analytics.zoo.shaded.arrow.vector.ipc.ArrowReader.initialize(ArrowReader.java:170)
>  com.intel.analytics.zoo.shaded.arrow.vector.ipc.ArrowReader.ensureInitialized(ArrowReader.java:161)
> com.intel.analytics.zoo.shaded.arrow.vector.ipc.ArrowReader.getVectorSchemaRoot(ArrowReader.java:63)
> {quote}
>  How to fix it?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)