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

Unable to use Group by with multiple entries with TIME-SERIES TABLE #12066

Open
guoxin-li opened this issue Dec 15, 2020 · 14 comments
Open

Unable to use Group by with multiple entries with TIME-SERIES TABLE #12066

guoxin-li opened this issue Dec 15, 2020 · 14 comments
Labels
validation:required A committer should validate the issue

Comments

@guoxin-li
Copy link

Issue
This issue has been seen in superset 0.26, 0.35, and the latest version of 0.36. When queries with more than one entires of Group by for Time-Series Table, the following error is showing up :
Unexpected Error keys must be str, int, float, bool or None, not tuple

How to reproduce this Error:
Use any available data source to create a TIME-SERIES TABLE, add more than one Group by entries and run query

Trace log
Traceback (most recent call last): File "/opt/superset/venv/lib/python3.6/site-packages/superset/views/base.py", line 120, in wraps return f(self, *args, **kwargs) File "/opt/superset/venv/lib/python3.6/site-packages/superset/utils/decorators.py", line 69, in wrapper return f(*args, **kwargs) File "/opt/superset/venv/lib/python3.6/site-packages/superset/views/core.py", line 1092, in explore_json viz_obj, csv=csv, query=query, results=results, samples=samples File "/opt/superset/venv/lib/python3.6/site-packages/superset/views/core.py", line 1014, in generate_json return data_payload_response(*viz_obj.payload_json_and_has_error(payload)) File "/opt/superset/venv/lib/python3.6/site-packages/superset/viz.py", line 478, in payload_json_and_has_error return self.json_dumps(payload), has_error File "/opt/superset/venv/lib/python3.6/site-packages/superset/viz.py", line 470, in json_dumps obj, default=utils.json_int_dttm_ser, ignore_nan=True, sort_keys=sort_keys File "/opt/superset/venv/lib64/python3.6/site-packages/simplejson/_init_.py", line 412, in dumps **kw).encode(obj) File "/opt/superset/venv/lib64/python3.6/site-packages/simplejson/encoder.py", line 296, in encode chunks = self.iterencode(o, _one_shot=True) File "/opt/superset/venv/lib64/python3.6/site-packages/simplejson/encoder.py", line 378, in iterencode return _iterencode(o, 0) TypeError: keys must be str, int, float, bool or None, not tuple

@kamalkeshavani-aiinside
Copy link
Contributor

@junlincc Please add appropriate tag to this issue.
I can reproduce this issue still in v1.1.0 and master.

@tugra-alp
Copy link

This issue is still exist in v1.3.

@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label Apr 17, 2022
@grzesuav
Copy link

seen that on 1.4

@emgoryaynova
Copy link

Still exists in 2.0.1

@stale stale bot removed the inactive Inactive for >= 30 days label Nov 16, 2022
@jinyangzhen
Copy link

yes, still exists in 2.0.1. Any plan to fix

@mtrentz
Copy link

mtrentz commented May 17, 2023

Also had the same problem with the same error.

The result query runs fine in postgres.

@billcrook
Copy link

I see this in 3.0.1 with a time-series table chart.

@rusackas
Copy link
Member

This obviously isn't getting much traction, as it doesn't seem to be ruining the day of any core committers. I'm tempted to close it since it's over three years old, but I'm guessing it still exists. Anyone on this thread willing to open a PR?

@Aset-21
Copy link

Aset-21 commented Apr 2, 2024

It would be cool to fix this error in the time-series table chart.

@kyledufrane
Copy link

still exists in 2.1.3

@rusackas
Copy link
Member

rusackas commented May 6, 2024

2.x is no longer supported. We currently support 3.1 and 4.0. Can anyone confirm the issue still exists in supported versions?

@rusackas rusackas added the validation:required A committer should validate the issue label May 6, 2024
@tfzrch
Copy link

tfzrch commented Sep 20, 2024

still exists in 4.0.1

@VikramKumarArammeem
Copy link

@rusackas Same issue still facing with 3.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validation:required A committer should validate the issue
Projects
None yet
Development

No branches or pull requests