Skip to content

Commit

Permalink
Explicitly set writing of page index
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Nov 30, 2023
1 parent a95ab8b commit 207cb32
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/tpch/generate-data.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def _tpch_data_gen(
out_,
compression=compression.value.lower(),
write_statistics=True,
write_page_index=True,
)
print(f"Finished exporting table {table}!")
print("Finished exporting all data!")
Expand All @@ -219,7 +220,11 @@ def rows_approx_mb(con, table_name, partition_size: str, compression: Compressio
stmt = f"select * from {table_name} limit {sample_size}"
df = con.sql(stmt).arrow()
pq.write_table(
df, tmp, compression=compression.value.lower(), write_statistics=True
df,
tmp,
compression=compression.value.lower(),
write_statistics=True,
write_page_index=True,
)
mb = tmp.stat().st_size
return int(
Expand Down

0 comments on commit 207cb32

Please sign in to comment.