raminqaf commented on code in PR #29310:
URL: https://github.com/apache/flink/pull/29310#discussion_r4123299128


##########
flink-core/src/main/java/org/apache/flink/types/variant/Variant.java:
##########
@@ -237,7 +240,12 @@ public interface Variant extends Serializable {
      */
     List<String> getFieldNames() throws VariantTypeException;
 
-    /** Parses the variant to json. */
+    /**

Review Comment:
   Added 



##########
flink-core/src/main/java/org/apache/flink/types/variant/Variant.java:
##########
@@ -237,7 +240,12 @@ public interface Variant extends Serializable {
      */
     List<String> getFieldNames() throws VariantTypeException;
 
-    /** Parses the variant to json. */
+    /**
+     * Returns the variant as valid JSON. Use {@code toString()} to debug a 
variant without one.
+     *
+     * @throws VariantTypeException if the variant contains a value that 
cannot be represented as
+     *     valid JSON

Review Comment:
   Added



-- 
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]

Reply via email to