comphead commented on code in PR #2632:
URL: https://github.com/apache/datafusion-comet/pull/2632#discussion_r2467066712


##########
dev/benchmarks/tpcbench.py:
##########
@@ -91,9 +91,12 @@ def main(benchmark: str, data_path: str, query_path: str, 
iterations: int, outpu
                         df.explain()
 
                         if write_path is not None:
-                            output_path = f"{write_path}/q{query}"
-                            
df.coalesce(1).write.mode("overwrite").parquet(output_path)
-                            print(f"Query {query} results written to 
{output_path}")
+                            if len(df.columns) > 0:

Review Comment:
   spark complains on saving df with empty schema, this can happen for DDL 
statements which came across in TPC sets



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to