Skip to content

Commit 9e04891

Browse files
committed
Allays drop tables
1 parent c7ad740 commit 9e04891

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

benchmarks/cdk/bin/datafusion-bench.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ function createTablesSql (sf: number): string {
152152
"supplier",
153153
]) {
154154
// language=SQL format=false
155-
stmt += `CREATE EXTERNAL TABLE IF NOT EXISTS ${tbl} STORED AS PARQUET LOCATION 's3://datafusion-distributed-benchmarks/tpch_sf${sf}/${tbl}/';\n`
155+
stmt += `
156+
DROP TABLE IF EXISTS ${tbl};
157+
CREATE EXTERNAL TABLE IF NOT EXISTS ${tbl} STORED AS PARQUET LOCATION 's3://datafusion-distributed-benchmarks/tpch_sf${sf}/${tbl}/';
158+
`
156159
}
157160
return stmt
158161
}

0 commit comments

Comments
 (0)