cashmand commented on code in PR #50025: URL: https://github.com/apache/spark/pull/50025#discussion_r1973900282
########## common/variant/src/main/java/org/apache/spark/types/variant/VariantBuilder.java: ########## @@ -240,6 +242,19 @@ public void appendBinary(byte[] binary) { writePos += binary.length; } + public void appendUuid(UUID uuid) { + checkCapacity(1 + 16); + writeBuffer[writePos++] = primitiveHeader(UUID); + + // UUID is stored big-endian, so don't use writeLong. + ByteBuffer buffer = ByteBuffer.allocate(16); Review Comment: Done. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org