Skip to content

Commit

Permalink
Support q06
Browse files Browse the repository at this point in the history
  • Loading branch information
qinxuye committed Sep 19, 2023
1 parent 2c86ca7 commit 692fb94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xorbits_sql/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def aggregate(
if step.group:
result = df.groupby(group_by).agg(**aggregations).reset_index()
else:
result = df.agg(**aggregations)
result = df.agg(**aggregations).reset_index(drop=True)
result.columns = names
else:
assert len(group_by) == len(names)
Expand Down
2 changes: 1 addition & 1 deletion xorbits_sql/tests/test_tpc_h.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _to_csv(expression: exp.Expression) -> exp.Expression:

def test_execute_tpc_h(prepare_data):
conn, sqls = prepare_data
for sql, _ in sqls[:5]:
for sql, _ in sqls[:6]:
expected = conn.execute(sql).fetchdf()
result = execute(
parse_one(sql, dialect="duckdb").transform(_to_csv).sql(pretty=True),
Expand Down

0 comments on commit 692fb94

Please sign in to comment.