Skip to content

Commit

Permalink
Return to normal swapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-astachowski committed Dec 5, 2024
1 parent 5e4bd5a commit fce2d9a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,9 @@ public void readArrowStream(InputStream is) throws IOException {
for (FieldVector f : root.getFieldVectors()) {
// transfer will not copy data but transfer ownership of memory
// from streamReader to resultChunk
if(ByteOrder.nativeOrder().equals(ByteOrder.LITTLE_ENDIAN)) {
if(ByteOrder.nativeOrder().equals(ByteOrder.BIG_ENDIAN)) {
f.accept(new EndiannessSwitchVisitor(), null);
}
f.accept(new EndiannessSwitchVisitor(), null);
TransferPair t = f.getTransferPair(rootAllocator);
t.transfer();
valueVectors.add(t.getTo());
Expand Down

0 comments on commit fce2d9a

Please sign in to comment.