snuyanzin commented on code in PR #24156:
URL: https://github.com/apache/flink/pull/24156#discussion_r1478776254


##########
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:
   How it is supposed to be called from table api?
   can you provide a couple of 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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to