修复分布分析 次数
This commit is contained in:
parent
ad231cb82a
commit
f75f9c97c6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user