guoxin-li opened a new issue, #12066:
URL: https://github.com/apache/superset/issues/12066

   **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`
    [](url)
    **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
    `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to