-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix(json_parse): Json_parse to ignore invalid unicode escape sequences #12086
Conversation
This pull request was exported from Phabricator. Differential Revision: D68176965 |
✅ Deploy Preview for meta-velox canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
This pull request was exported from Phabricator. Differential Revision: D68176965 |
…ences (facebookincubator#12086) Summary: Certain improperly escaped unicode points like \uDE2Dau throw in json_parse. This happens in simdjson since these are invalid unicode escape sequences (i.e without the surrogate pairs). As Presto java ignores this, we add similar support in Velox. ``` SELECT json_parse(x) from (values '"\uDE2Dau"') t(x); -- Returns "\uDE2Dau" in java but throws in Velox ``` Reviewed By: kevinwilfong Differential Revision: D68176965
feb8a27
to
11d5659
Compare
This pull request was exported from Phabricator. Differential Revision: D68176965 |
This pull request has been merged in 97b64a4. |
Summary:
Certain improperly escaped unicode points like \uDE2Dau throw in json_parse. This happens in simdjson since these are invalid unicode escape sequences (i.e without the surrogate pairs). As Presto java ignores this, we add similar support in Velox.
Differential Revision: D68176965