-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Ensure proper JSON serialization of numpy.ndarray #8946
Conversation
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
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 👍
Codecov Report
@@ Coverage Diff @@
## master #8946 +/- ##
=======================================
Coverage 58.97% 58.97%
=======================================
Files 359 359
Lines 11333 11333
Branches 2787 2787
=======================================
Hits 6684 6684
Misses 4471 4471
Partials 178 178 Continue to review full report at Codecov.
|
(cherry picked from commit 7ff18f0)
Hi @robdiciuccio Thanks very much for the fix. I run a few queries in different tables. Here is another error message also related to
|
Thanks @graceguo-supercat. Is this in Presto? What are the data types of the columns being queried? |
Presto version=0.188. |
@graceguo-supercat I tested with the following table and data in our Presto (Hive) cluster, and was unable to replicate the error.
|
This reverts commit 7ff18f0.
@robdiciuccio Do you test this PR with Hive cc @john-bodley |
This reverts commit 7ff18f0.
This reverts commit 7ff18f0.
CATEGORY
Choose one
SUMMARY
When querying a Presto datasource with a column of type
ARRAY
asynchronously, the following error would be raised:This fix ensures proper conversion of the
numpy.ndarray
to a list for JSON serialization.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
Ensure queries against a Presto table containing nested data type columns work correctly. Repeat for other supported DBs having nested data type columns.
This fix was tested against Presto 0.227 in both async and sync queries.
ADDITIONAL INFORMATION
REVIEWERS
@graceguo-supercat @craig-rueda @dpgaspar @villebro