You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/08/27 14:05:19 UTC

[GitHub] [incubator-superset] WChCh commented on issue #7074: Filter-box charts broken with 0.31 with Druid datasources

WChCh commented on issue #7074: Filter-box charts broken with 0.31 with Druid datasources
URL: https://github.com/apache/incubator-superset/issues/7074#issuecomment-525316831
 
 
   > Another regression that I have noticed in Filter Box is that now (in 0.31.0) instead of returning "No data", like it happens on 0.26, I get the following:
   > 
   > ```
   > Traceback (most recent call last):
   >   File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/views/base.py", line 114, in wraps
   >     return f(self, *args, **kwargs)
   >   File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/views/core.py", line 1229, in explore_json
   >     samples=samples,
   >   File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/views/core.py", line 1160, in generate_json
   >     payload = viz_obj.get_payload()
   >   File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/viz.py", line 375, in get_payload
   >     payload['data'] = self.get_data(df)
   >   File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/viz.py", line 1821, in get_data
   >     df = df.sort_values(metric, ascending=flt.get('asc'))
   >   File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/pandas/core/frame.py", line 4421, in sort_values
   >     stacklevel=stacklevel)
   >   File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/pandas/core/generic.py", line 1382, in _get_label_or_level_values
   >     raise KeyError(key)
   > KeyError: 'count'
   > ```
   > 
   > Count in this case is the sort metric of the first filter added.
   > 
   > EDIT: might be related to #7019 ?
   
   hi, elukey
   I got the same problem!  how to solve it!

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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