修复分布分析 次数

This commit is contained in:
wuaho 2021-10-28 11:32:03 +08:00
parent ad231cb82a
commit f75f9c97c6

View File

@ -585,11 +585,11 @@ ORDER BY level
if self.time_particle == 'total':
qry = sa.select( *self.groupby, values_col) \
.where(and_(*where)) \
.group_by( *self.groupby)
.group_by( *self.groupby, e_account_id_col)
else:
qry = sa.select(event_date_col, *self.groupby, values_col) \
.where(and_(*where)) \
.group_by(event_date_col, *self.groupby)
.group_by(event_date_col, *self.groupby, e_account_id_col)
sql = str(qry.compile(compile_kwargs={"literal_binds": True}))
print(sql)