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
Serialize nested columns as JSON strings #9007
Serialize nested columns as JSON strings #9007
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9007 +/- ##
=======================================
Coverage 59.16% 59.16%
=======================================
Files 367 367
Lines 11680 11680
Branches 2863 2863
=======================================
Hits 6910 6910
Misses 4591 4591
Partials 179 179 Continue to review full report at Codecov.
|
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
if pa.types.is_temporal(pa_data[i].type): | ||
# TODO: revisit nested column serialization once Arrow 1.0 is released with: | ||
# https://github.com/apache/arrow/pull/6199 | ||
# Related issue: #8978 |
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.
use url instead of issue #?
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
This reverts commit 2fc3d84.
CATEGORY
Choose one
SUMMARY
SQL Lab queries against databases with nested columns/results containing structs or maps are failing with the following error:
Serializing results to JSON is not the ideal solution, mainly for performance reasons, but there are pending fixes yet to be released in Arrow 1.0 that may improve the situation:
apache/arrow#6199
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
Ensure queries against databases containing nested columns (particularly arrays containing maps) are successful. Per #8978, the following query should succeed and produce the proper results:
ADDITIONAL INFORMATION
REVIEWERS
@lxhoang97 @graceguo-supercat @john-bodley @michellethomas @villebro