Skip to content

Commit

Permalink
add spark prefix to tpcds.gen.defaultParallel to take affect (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
TJX2014 authored Sep 15, 2024
1 parent ca00a98 commit 90a9be6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Tables(sqlContext: SQLContext, scaleFactor: Int) extends Serializable {
def df(convertToSchema: Boolean, numPartition: Int): DataFrame = {
val numDefaultPartitions = sparkContext
.conf
.getInt("tpcds.gen.defaultParallel", defaultValue = 1000)
.getInt("spark.tpcds.gen.defaultParallel", defaultValue = 1000)

val partitions = if (partitionColumns.isEmpty) numDefaultPartitions else numPartition
val generatedData = {
Expand Down

0 comments on commit 90a9be6

Please sign in to comment.