mirror of
https://github.com/apache/superset.git
synced 2026-06-02 14:19:21 +00:00
druid connector: avoid using 'dimensions' for scan queries (#7377)
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
This commit is contained in:
committed by
Maxime Beauchemin
parent
f59ed026e4
commit
51fd43a47b
2
setup.py
2
setup.py
@@ -92,7 +92,7 @@ setup(
|
||||
'parsedatetime',
|
||||
'pathlib2',
|
||||
'polyline',
|
||||
'pydruid>=0.4.3',
|
||||
'pydruid>=0.5.2',
|
||||
'python-dateutil',
|
||||
'python-geohash',
|
||||
'pyyaml>=3.13',
|
||||
|
||||
@@ -1118,7 +1118,8 @@ class DruidDatasource(Model, BaseDatasource):
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user