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

utils: add special serializer for numpy.int64 #492

Merged
merged 1 commit into from
May 20, 2016

Conversation

xrmx
Copy link
Contributor

@xrmx xrmx commented May 19, 2016

I don't know if this is papering over another issue but it looks to fix the issue for me :)

It looks like COUNT(*) returns a numpy.int64 value that the
default JSONEncoder does not handle.

While at if we get a type we are not handling make it easier to
debug the issue by throwing a TypeError exception with useful
data.

Fix #486

It looks like COUNT(*) returns a numpy.int64 value that the
default JSONEncoder does not handle.

While at if we get a type we are not handling make it easier to
debug the issue by throwing a TypeError exception with useful
data.

Fix apache#486
@landscape-bot
Copy link

Code Health
Repository health decreased by 0.02% when pulling c0ff4dc on xrmx:serializenumpy into 4738b01 on airbnb:master.

@coveralls
Copy link

coveralls commented May 19, 2016

Coverage Status

Coverage decreased (-0.08%) to 81.972% when pulling c0ff4dc on xrmx:serializenumpy into 4738b01 on airbnb:master.

@mistercrunch
Copy link
Member

Perfect. Yeah this is probably specific to Pandas / SqlAlchemy subtle differences on casting that varies based on different database engine.

@mistercrunch mistercrunch merged commit e1a3854 into apache:master May 20, 2016
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 17, 2021
* feat: remove redundant metric label truncation

* fix lint
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 24, 2021
* feat: remove redundant metric label truncation

* fix lint
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 25, 2021
* feat: remove redundant metric label truncation

* fix lint
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 26, 2021
* feat: remove redundant metric label truncation

* fix lint
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.9.1 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.9.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues with Date JSON Serialization
4 participants