Skip to content

Commit

Permalink
Modify the TPC-H queries of duckdb, pandas, polars, and cuDF (#5)
Browse files Browse the repository at this point in the history
* Modify the TPC-H queries of  duckdb, pandas, polars, and cuDF
  • Loading branch information
mia1460 authored Apr 21, 2024
1 parent 25b842b commit fbcfd52
Show file tree
Hide file tree
Showing 6 changed files with 1,626 additions and 274 deletions.
3 changes: 3 additions & 0 deletions tpch/common_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def print_result_fn(solution: str, result: pd.DataFrame, query: str):
if not os.path.exists(result_prefix):
os.makedirs(result_prefix)
result_path = f"{result_prefix}/{query}.out"
if(solution == "polars"):
result.write_csv(result_path)
return
result.to_csv(result_path, index=False)


Expand Down
Loading

0 comments on commit fbcfd52

Please sign in to comment.