lidavidm commented on code in PR #12777:
URL: https://github.com/apache/arrow/pull/12777#discussion_r841700087


##########
java/vector/src/main/java/org/apache/arrow/vector/types/pojo/Schema.java:
##########
@@ -207,6 +209,7 @@ public int getSchema(FlatBufferBuilder builder) {
     int fieldsOffset = 
org.apache.arrow.flatbuf.Schema.createFieldsVector(builder, fieldOffsets);
     int metadataOffset = FBSerializables.writeKeyValues(builder, metadata);
     org.apache.arrow.flatbuf.Schema.startSchema(builder);
+    org.apache.arrow.flatbuf.Schema.addEndianness(builder, (short) 
(LITTLE_ENDIAN ? 0 : 1));

Review Comment:
   nit: we could use the generated constants for this? 
[org.apache.arrow.flatbuf.Endianness](https://arrow.apache.org/docs/java/reference/org/apache/arrow/flatbuf/Endianness.html)



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to