gustavodemorais commented on code in PR #28110:
URL: https://github.com/apache/flink/pull/28110#discussion_r3187878048
##########
flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/BinaryStringData.java:
##########
@@ -81,20 +81,59 @@ public static BinaryStringData fromString(String str) {
}
}
- /** Creates a {@link BinaryStringData} instance from the given UTF-8
bytes. */
+ /**
+ * Creates a {@link BinaryStringData} instance by wrapping the given UTF-8
bytes in O(1) without
+ * copying or validating them. The caller is responsible for ensuring the
bytes are well-formed
+ * UTF-8; use {@link #fromUtf8Bytes(byte[])} if validation is required.
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]