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

Fix handling of exceptions in try_cast from Json #6116

Closed
wants to merge 1 commit into from

Conversation

kagamiori
Copy link
Contributor

Summary: try_cast from Json to complex types used to throw when there are exceptions during casting from the first row. The reason is that in this situation, castFromJson() calls add_item() of the top-level complex-type writer before its child generic writer is casted. VectorWriter<Generic> doesn't allow this use case before this fix.

Differential Revision: D48370227

Summary: try_cast from Json to complex types used to throw when there are exceptions during casting from the first row. The reason is that in this situation, castFromJson() calls add_item() of the top-level complex-type writer before its child generic writer is casted. VectorWriter<Generic<T>> doesn't allow this use case before this fix.

Differential Revision: D48370227

fbshipit-source-id: bfd4b769758aa86101efd0c0e0cae7b762e6df8b
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 15, 2023
@netlify
Copy link

netlify bot commented Aug 15, 2023

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit d8af1b8
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/64dbf34db1ca370008354351

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48370227

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in f4dfad4.

@conbench-facebook
Copy link

Conbench analyzed the 1 benchmark run on commit f4dfad4b.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

unigof pushed a commit to unigof/velox that referenced this pull request Aug 18, 2023
)

Summary:
Pull Request resolved: facebookincubator#6116

try_cast from Json to complex types used to throw when there are exceptions during casting from the first row. The reason is that in this situation, castFromJson() calls add_item() of the top-level complex-type writer before its child generic writer is casted. VectorWriter<Generic<T>> doesn't allow this use case before this fix.

Reviewed By: laithsakka

Differential Revision: D48370227

fbshipit-source-id: e0cb8d3a04097c14f0687733f33cce66854dc979
ericyuliu pushed a commit to ericyuliu/velox that referenced this pull request Oct 12, 2023
)

Summary:
Pull Request resolved: facebookincubator#6116

try_cast from Json to complex types used to throw when there are exceptions during casting from the first row. The reason is that in this situation, castFromJson() calls add_item() of the top-level complex-type writer before its child generic writer is casted. VectorWriter<Generic<T>> doesn't allow this use case before this fix.

Reviewed By: laithsakka

Differential Revision: D48370227

fbshipit-source-id: e0cb8d3a04097c14f0687733f33cce66854dc979
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants