superset: Unable to use Group by with multiple entries with TIME-SERIES TABLE
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
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 6
- Comments: 19 (6 by maintainers)
Hi @michael-s-molina, I’m using Superset 4.1.1 and still unable to use group by with multiple dimensions (see the capture). Can you reopen this issue?
@junlincc Please add appropriate tag to this issue. I can reproduce this issue still in v1.1.0 and master.