jeyhunkarimov commented on code in PR #24156:
URL: https://github.com/apache/flink/pull/24156#discussion_r1478938877
##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/BaseExpressions.java:
##########
@@ -1090,6 +1092,21 @@ public OutType regexpExtract(InType regex) {
unresolvedCall(REGEXP_EXTRACT, toExpr(),
objectToExpression(regex)));
}
+ /**
+ * Returns a string by quotes a string as a JSON value and wrapping it
with double quote
+ * characters.
+ */
+ public OutType jsonQuote(InType input) {
+ return toApiSpecificExpression(
+ unresolvedCall(JSON_QUOTE, toExpr(),
objectToExpression(input)));
+ }
+
+ /** Returns utf8mb4 string by unquoting JSON value. */
+ public OutType jsonUnquote(InType input) {
+ return toApiSpecificExpression(
+ unresolvedCall(JSON_UNQUOTE, toExpr(),
objectToExpression(input)));
+ }
+
Review Comment:
Good point. IT cases resolved some issues related to the table API and
enabled examples
--
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]