snuyanzin commented on code in PR #29483:
URL: https://github.com/apache/flink/pull/29483#discussion_r4293616845
##########
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlJsonUtils.java:
##########
@@ -611,6 +614,26 @@ public static JsonValueContext jsonParse(String input) {
return jsonValueExpression(input);
}
+ /** Parses a JSON string into a {@link Variant}, throwing on malformed
input. */
+ public static Variant parseJsonToVariant(StringData jsonStr, boolean
allowDuplicateKeys) {
+ final byte[] bytes = jsonStr.toBytes();
Review Comment:
the only reason: the code was before in function implementation.
what will we get if we switch to bytes in args?
--
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]