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/03/20 18:37:36 UTC

[GitHub] [incubator-superset] elukey opened a new issue #7074: Filter-box charts broken with 0.29/0.31 with Druid datasources

elukey opened a new issue #7074: Filter-box charts broken with 0.29/0.31 with Druid datasources
URL: https://github.com/apache/incubator-superset/issues/7074
 
 
   <!--
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
   distributed with this work for additional information
   regarding copyright ownership.  The ASF licenses this file
   to you under the Apache License, Version 2.0 (the
   "License"); you may not use this file except in compliance
   with the License.  You may obtain a copy of the License at
   
     http://www.apache.org/licenses/LICENSE-2.0
   
   Unless required by applicable law or agreed to in writing,
   software distributed under the License is distributed on an
   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   KIND, either express or implied.  See the License for the
   specific language governing permissions and limitations
   under the License.
   -->
   Make sure these boxes are checked before submitting your issue - thank you!
   
   - [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
   - [x] I have reproduced the issue with at least the latest released version of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't found one similar.
   
   
   ### Superset version
   0.29rc8/0.31.0rc18
   
   Filter-box charts with Druid datasources have been working fine up to 0.26, but when I have upgraded to 0.29/0.31 I always get the following stacktrace:
   
   ```
   Mar 20 18:31:22 analytics-tool1004 superset[6854]: 2019-03-20 18:31:22,456:ERROR:root:list index out of range
   Mar 20 18:31:22 analytics-tool1004 superset[6854]: Traceback (most recent call last):
   Mar 20 18:31:22 analytics-tool1004 superset[6854]:   File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/viz.py", line 410, in get_df_payload
   Mar 20 18:31:22 analytics-tool1004 superset[6854]:     df = self.get_df(query_obj)
   Mar 20 18:31:22 analytics-tool1004 superset[6854]:   File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/viz.py", line 213, in get_df
   Mar 20 18:31:22 analytics-tool1004 superset[6854]:     self.results = self.datasource.query(query_obj)
   Mar 20 18:31:22 analytics-tool1004 superset[6854]:   File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/connectors/druid/models.py", line 1287, in query
   Mar 20 18:31:22 analytics-tool1004 superset[6854]:     client=client, query_obj=query_obj, phase=2)
   Mar 20 18:31:22 analytics-tool1004 superset[6854]:   File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/connectors/druid/models.py", line 883, in get_query_str
   Mar 20 18:31:22 analytics-tool1004 superset[6854]:     return self.run_query(client=client, phase=phase, **query_obj)
   Mar 20 18:31:22 analytics-tool1004 superset[6854]:   File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/connectors/druid/models.py", line 1150, in run_query
   Mar 20 18:31:22 analytics-tool1004 superset[6854]:     order_by = list(qry['aggregations'].keys())[0]
   Mar 20 18:31:22 analytics-tool1004 superset[6854]: IndexError: list index out of range
   ```
   If I inspect qry I can see that 'aggregations' is a OrderedDict() with no elements in it (that explains the list index out of range). I tried to check changes for the python file that could be relevant but didn't find any :(
   

----------------------------------------------------------------
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