事件分析标签分组项1

This commit is contained in:
Àî×ÚÕñ 2022-07-08 11:28:54 +08:00
parent 650a12a430
commit f2be717f3e

View File

@ -873,7 +873,7 @@ ORDER BY level
if analysis in ['number_of_days', 'number_of_hours']:
values_col = func.count(func.distinct(e_account_id_col)).label('values')
if analysis in ['times', 'number_of_days', 'number_of_hours']:
if analysis in ['times', 'number_of_days', 'number_of_hours', 'sum', 'avg', 'median', 'max', 'min', 'distinct_count']:
if self.time_particle == 'total':
qry = sa.select(*self.groupby, values_col) \
.where(and_(*where)) \