Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
373 changes: 145 additions & 228 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ pyo3-async-runtimes = { version = "0.26", features = ["tokio-runtime"] }
pyo3-log = "0.13.2"
arrow = { version = "57", features = ["pyarrow"] }
arrow-select = { version = "57" }
datafusion = { version = "51", features = ["avro", "unicode_expressions"] }
datafusion-substrait = { version = "51", optional = true }
datafusion-proto = { version = "51" }
datafusion-ffi = { version = "51" }
datafusion = { version = "52", features = ["avro", "unicode_expressions"] }
datafusion-substrait = { version = "52", optional = true }
datafusion-proto = { version = "52" }
datafusion-ffi = { version = "52" }
prost = "0.14.1" # keep in line with `datafusion-substrait`
uuid = { version = "1.18", features = ["v4"] }
mimalloc = { version = "0.1", optional = true, default-features = false, features = [
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/tpch/tpch.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


def bench(data_path, query_path) -> None:
with Path.open("results.csv", "w") as results:
with Path("results.csv").open("w") as results:
# register tables
start = time.time()
total_time_millis = 0
Expand All @@ -46,7 +46,7 @@ def bench(data_path, query_path) -> None:
print("Configuration:\n", ctx)

# register tables
with Path.open("create_tables.sql") as f:
with Path("create_tables.sql").open() as f:
sql = ""
for line in f.readlines():
if line.startswith("--"):
Expand All @@ -66,7 +66,7 @@ def bench(data_path, query_path) -> None:

# run queries
for query in range(1, 23):
with Path.open(f"{query_path}/q{query}.sql") as f:
with Path(f"{query_path}/q{query}.sql").open() as f:
text = f.read()
tmp = text.split(";")
queries = [s.strip() for s in tmp if len(s.strip()) > 0]
Expand Down
Loading