rdblue commented on code in PR #12682: URL: https://github.com/apache/iceberg/pull/12682#discussion_r2052756028
########## core/src/main/java/org/apache/iceberg/variants/PrimitiveWrapper.java: ########## @@ -204,6 +217,23 @@ public int writeTo(ByteBuffer outBuffer, int offset) { outBuffer.putInt(offset + 1, buffer.remaining()); VariantUtil.writeBufferAbsolute(outBuffer, offset + 5, buffer); return 5 + buffer.remaining(); + case TIMENTZ: + outBuffer.put(offset, TIMENTZ_HEADER); + outBuffer.putLong(offset + 1, (Long) value); + return 9; + case TIMESTAMPTZNS: + outBuffer.put(offset, TIMESTAMPTZNS_HEADER); + outBuffer.putLong(offset + 1, (Long) value); + return 9; + case TIMESTAMPNTZNS: + outBuffer.put(offset, TIMESTAMPNTZNS_HEADER); + outBuffer.putLong(offset + 1, (Long) value); + return 9; + case UUID: + outBuffer.put(offset, UUID_HEADER); + VariantUtil.writeBufferAbsolute( + outBuffer, offset + 1, UUIDUtil.convertToByteBuffer((UUID) value)); + return 1 + 16; Review Comment: 17? -- 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...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org