提交 bef4a537 编写于 作者: C cpwu

fix case

上级 0da87338
......@@ -106,6 +106,14 @@ class TDTestCase:
def __group_condition(self, col, having = None):
if col.startswith("count"):
col = col.split("count(")[1].split(")")
if col.startswith("max"):
col = col.split("max(")[1].split(")")
if col.startswith("sum"):
col = col.split("sum(")[1].split(")")
if col.startswith("min"):
col = col.split("min(")[1].split(")")
return f" group by {col} having {having}" if having else f" group by {col} "
def __single_sql(self, select_clause, from_clause, where_condition=None, group_condition=None):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册