Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ object TPCDSQueryBenchmark extends SqlBasedBenchmark with Logging {
tables.map { tableName =>
spark.sql(s"DROP TABLE IF EXISTS $tableName")
val options = Map("path" -> s"$dataLocation/$tableName")
spark.catalog.createTable(tableName, "parquet", tableColumns(tableName), options)
val format = spark.conf.get("spark.sql.sources.default")
spark.catalog.createTable(tableName, format, tableColumns(tableName), options)
// Recover partitions but don't fail if a table is not partitioned.
Try {
spark.sql(s"ALTER TABLE $tableName RECOVER PARTITIONS")
Expand Down