manner commented on code in PR #29163:
URL: https://github.com/apache/flink/pull/29163#discussion_r4006582923
##########
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/UuidCastUtils.java:
##########
@@ -46,6 +47,18 @@ public static String toStringValue(byte[] uuidBytes) {
return new UUID(buffer.getLong(), buffer.getLong()).toString();
}
+ /**
+ * Encodes a {@code UUID} into the canonical 16-byte big-endian
representation used to store a
+ * {@code UUID} value.
+ */
+ public static byte[] toUuidBytes(UUID uuid) {
Review Comment:
In the current location only `RexLiteralUtil` in the planner can reuse it,
to deduplicate it also in `UuidUuidConverter` it would have to move to
`flink-table-common`.
--
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]