liyafan82 commented on pull request #7543:
URL: https://github.com/apache/arrow/pull/7543#issuecomment-652395634


   > @liyafan82 The problem actually isn't with big-endian platforms! It's 
because Java's ByteBuffer [defaults to 
big-endian](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/ByteBuffer.html#wrap(byte%5B%5D)),
 and some libraries, like Protobuf, inherit that behavior. We discovered this 
when developing with Flight internally; there are Protobuf APIs that return a 
ByteBuffer that may be big-endian; when Flight tries to copy the buffer into an 
ArrowBuf, it corrupts the data.
   
   @lidavidm Thanks a lot for your clarification. This is really a problem that 
needs to be 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.

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


Reply via email to