-
Notifications
You must be signed in to change notification settings - Fork 240
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
[BUG] GetJsonObject should return null for invalid query instead of throwing an exception #10212
Comments
This should be addressed by PR 15082 for the cases where JSONPath (query) contains invalid syntax. |
Cudf PR 15082 does fix the issue (returns null instead of throwing an error) in the cases where cudf thinks the query has an invalid argument. This means the example stated in the description will not result in cudf exception. However, an attempt to handle it within the spark-rapids is being made by PR 10466 by handling it before passing to cudf. I'll let authors of PR 10466 close this issue. |
@thirtiseven has this issue been verified to be closed by #10466 ? cc: @revans2 |
Thanks for remind. Technically, this issue was fixed by #15082 and #10466, but the test case Now the case fails for a different reason:
I'm going to move this case out of |
Filed issue for the above case: #10537 |
The PR #15082 doesn't address the issue with This issue remains a limitation of cudf's get_json_object function. |
Now new implementation parses path in Spark-Rapids by using Spark code, so we should check the invalid path in Spark-Rapids before calling Kernel code. |
Will be fixed by: #10581 |
Describe the bug
There are some invalid paths, like in python
which results in the cudf code throwing an exception saying the path is invalid. But the Spark code just returns a null for an invalid path. We should do the same.
or
The text was updated successfully, but these errors were encountered: