question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pyarrow does not know how to serialize objects of type

See original GitHub issue

sql_lab and also visualization doesn’t work because of pyarrow can’t serialize objects

Expected results

return query result

Actual results

pyarrow does not know how to serialize objects of type <class 'pandas.core.arrays.integer.IntegerArray'>.

Screenshots

Screenshot from 2019-10-15 18-24-34

How to reproduce the bug

  1. Go to sql_lab
  2. Run a query like SELECT *
  3. See error

Environment

  • superset version: branch master on 2019-10-12 18:38
  • python version: 3.7
  • node.js version: 10.16.3
  • npm version: 6.9.0

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven’t found one similar.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
issue-label-bot[bot]commented, Oct 15, 2019

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.84. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

2reactions
robdiciucciocommented, Oct 19, 2019

Thanks for reporting this issue. This may be related to https://github.com/apache/incubator-superset/issues/8225. Are you using Presto by chance?

You can disable msgpack and pyarrow serialization by setting RESULTS_BACKEND_USE_MSGPACK = False in superset_config.py until this issue is resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pyarrow does not know how to serialize objects of type #8396
I have checked the superset logs for python stacktraces and included it here as text if there are any. I have reproduced the...
Read more >
[Python] pyarrow.serialize does not support pandas nullable ...
Serializing an IntegerArray doesn't seem to work with the latest version ... pyarrow does not know how to serialize objects of type <class...
Read more >
How to serialize custom classes as structs using pyarrow in ...
Got Python object of type MyClass but can only handle these types: bool, float, integer, date, datetime, bytes, unicode, decimal . Obviously i ......
Read more >
serialization.pxi · arrow-nightlies/pyarrow - Gemfury
Parameters ---------- type\_ : type The type that we can serialize. type_id ... __dict__ else: msg = "We do not know how to...
Read more >
Streaming, Serialization, and IPC — Apache Arrow v3.0.0 ...
In pyarrow we are able to serialize and deserialize many kinds of Python objects. While not a complete replacement for the pickle module,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found