From e9389cc7f80286b52bf92cce4b4518441dd5e58c Mon Sep 17 00:00:00 2001 From: tibrewalpratik Date: Tue, 12 Mar 2024 22:35:00 +0530 Subject: [PATCH] update javadocs for isJson UDF --- .../pinot/common/function/scalar/StringFunctions.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pinot-common/src/main/java/org/apache/pinot/common/function/scalar/StringFunctions.java b/pinot-common/src/main/java/org/apache/pinot/common/function/scalar/StringFunctions.java index af91dcb0ff72..de7c1469216e 100644 --- a/pinot-common/src/main/java/org/apache/pinot/common/function/scalar/StringFunctions.java +++ b/pinot-common/src/main/java/org/apache/pinot/common/function/scalar/StringFunctions.java @@ -835,12 +835,11 @@ public static boolean like(String inputStr, String likePatternStr) { /** * Checks whether the input string can be parsed into a json node or not. Useful for scenarios where we want - * to filter out malformed json. In case of nulls we return null itself, as null can be treated as valid json - * in partial-upsert scenarios. Upto the user to use null response accordingly. + * to filter out malformed json. + * Null values are handled by the function invoker here and this function processes the results on non-null values. * * @param inputStr Input string to test for valid json - * @return in case of null value, it returns null. In case of non-null, it returns true in case of valid json - * parsing else false + * @return true in case of valid json parsing else false * */ @ScalarFunction(names = {"isJson", "is_json"})