Support hyperUniqueCardinality type in post aggregation (#451)

This commit is contained in:
x4base 2016-05-11 00:21:09 +08:00 committed by Maxime Beauchemin
parent 2f64c42062
commit c5fcbc0709
1 changed files with 1 additions and 1 deletions

View File

@ -1069,7 +1069,7 @@ class DruidDatasource(Model, AuditMixinNullable, Queryable):
field_names = []
for _f in _fields:
_type = _f.get('type')
if _type == 'fieldAccess':
if _type in ['fieldAccess', 'hyperUniqueCardinality']:
field_names.append(_f.get('fieldName'))
elif _type == 'arithmetic':
field_names += recursive_get_fields(_f)