Skip to content

Commit

Permalink
druid connector: avoid using 'dimensions' for scan queries (apache#7377)
Browse files Browse the repository at this point in the history
After the following PyDruid change (contained in version 0.5.2)
the Superset Histogram charts rendered with Druid data are
broken:

druid-io/pydruid@0a59a70

Bump the pydruid requirements accordingly in setup.py

Issue: apache#7368
  • Loading branch information
elukey committed May 9, 2019
1 parent d5d7ec0 commit cd4ff2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pathlib2==2.3.0
polyline==1.3.2
py==1.7.0 # via retry
pycparser==2.19 # via cffi
pydruid==0.5.0
pydruid==0.5.2
python-dateutil==2.6.1
python-editor==1.0.3 # via alembic
python-geohash==0.8.5
Expand Down
3 changes: 2 additions & 1 deletion superset/connectors/druid/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,8 @@ def run_query( # noqa / druid
columns.append('__time')
del qry['post_aggregations']
del qry['aggregations']
qry['dimensions'] = columns
del qry['dimensions']
qry['columns'] = columns
qry['metrics'] = []
qry['granularity'] = 'all'
qry['limit'] = row_limit
Expand Down

0 comments on commit cd4ff2e

Please sign in to comment.