Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update javadocs for isJson UDF #12636

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand Down
Loading