piotr-rachwalik opened a new issue, #45641:
URL: https://github.com/apache/arrow/issues/45641

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   We are retrieving data from Dremio server using Arrow Flight SQL client:
   ```java
       for (final FlightEndpoint endpoint : flightInfo.getEndpoints()) {
           try (FlightStream stream = 
flightSqlClient.getStream(endpoint.getTicket(), options)) {
               while (stream.next()) {
                  ...
               }
           }
   ```
   On x86 architecture it works fine, but on s390x platform it fails with:
   ```
   Caused by: java.lang.IndexOutOfBoundsException: index: -3690987520, length: 
4 (expected: range(0, 808))
        at org.apache.arrow.memory.ArrowBuf.checkIndexD(ArrowBuf.java:320)
        at org.apache.arrow.memory.ArrowBuf.chk(ArrowBuf.java:307)
        at org.apache.arrow.memory.ArrowBuf.getInt(ArrowBuf.java:426)
        at 
org.apache.arrow.vector.BaseVariableWidthVector.getStartOffset(BaseVariableWidthVector.java:1314)
        at 
org.apache.arrow.vector.BaseVariableWidthVector.setReaderAndWriterIndex(BaseVariableWidthVector.java:398)
        at 
org.apache.arrow.vector.BaseVariableWidthVector.setValueCount(BaseVariableWidthVector.java:986)
        at 
org.apache.arrow.vector.complex.ListVector.setValueCount(ListVector.java:940)
        at 
org.apache.arrow.vector.complex.DenseUnionVector.setChildVectorValueCounts(DenseUnionVector.java:1322)
        at 
org.apache.arrow.vector.complex.DenseUnionVector.setValueCount(DenseUnionVector.java:1310)
        at 
org.apache.arrow.vector.VectorSchemaRoot.setRowCount(VectorSchemaRoot.java:240)
        at org.apache.arrow.vector.VectorLoader.load(VectorLoader.java:86)
        at org.apache.arrow.flight.FlightStream.next(FlightStream.java:270)
   ```
   
   ### Component(s)
   
   Java


-- 
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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to