修复分布分析 次数
This commit is contained in:
parent
ad231cb82a
commit
f75f9c97c6
@ -585,11 +585,11 @@ ORDER BY level
|
|||||||
if self.time_particle == 'total':
|
if self.time_particle == 'total':
|
||||||
qry = sa.select( *self.groupby, values_col) \
|
qry = sa.select( *self.groupby, values_col) \
|
||||||
.where(and_(*where)) \
|
.where(and_(*where)) \
|
||||||
.group_by( *self.groupby)
|
.group_by( *self.groupby, e_account_id_col)
|
||||||
else:
|
else:
|
||||||
qry = sa.select(event_date_col, *self.groupby, values_col) \
|
qry = sa.select(event_date_col, *self.groupby, values_col) \
|
||||||
.where(and_(*where)) \
|
.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}))
|
sql = str(qry.compile(compile_kwargs={"literal_binds": True}))
|
||||||
print(sql)
|
print(sql)
|
||||||
|
Loading…
Reference in New Issue
Block a user