forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fixe handling of user errors in json_parse (facebookincubator#12272
) Summary: Pull Request resolved: facebookincubator#12272 json_parse currently only properly propagates user errors that come from normalizedSizeForJsonParse or from simd when parsing the JSON. User errors can come from elsewhere in the UDF, e.g. the generateViews logic, which are not caught and thus fail the query even when the UDF is wrapped in a "try". To fix this I've wrapped the bulk of the logic that gets executed on a single row in a try catch that handles user errors, propagating them to the EvalCtx. Reviewed By: Yuhta, kgpai Differential Revision: D69211907 fbshipit-source-id: 2ee7422c0f80a35b6f44221fe4942ab2cc04ae3a
- Loading branch information
1 parent
4caf5d1
commit 3375085
Showing
2 changed files
with
85 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters