Skip to content

Commit 0ba787f

Browse files
authored
chore: tpcbench output explain just once and formatted (#2679)
1 parent dba523d commit 0ba787f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dev/benchmarks/tpcbench.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def main(benchmark: str, data_path: str, query_path: str, iterations: int, outpu
104104
if len(sql) > 0:
105105
print(f"Executing: {sql}")
106106
df = spark.sql(sql)
107-
df.explain()
107+
df.explain("formatted")
108108

109109
if write_path is not None:
110110
# skip results with empty schema
@@ -123,8 +123,6 @@ def main(benchmark: str, data_path: str, query_path: str, iterations: int, outpu
123123
else:
124124
rows = df.collect()
125125
print(f"Query {query} returned {len(rows)} rows")
126-
df.explain()
127-
128126

129127
end_time = time.time()
130128
print(f"Query {query} took {end_time - start_time} seconds")

0 commit comments

Comments
 (0)