Skip to content

Commit

Permalink
Handle default value for maxExecutors sparkConf
Browse files Browse the repository at this point in the history
Signed-off-by: Shri Saran Raj N <[email protected]>
  • Loading branch information
Shri Saran Raj N committed Dec 10, 2024
1 parent 4783814 commit 6747ab9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ trait FlintJobExecutor {
}

def getSegmentName(sparkSession: SparkSession): String = {
val maxExecutorsCount = sparkSession.conf.get(FlintSparkConf.MAX_EXECUTORS_COUNT.key)
val maxExecutorsCount = sparkSession.conf.get(FlintSparkConf.MAX_EXECUTORS_COUNT.key, "unknown")
String.format("%se", maxExecutorsCount)
}

Expand Down

0 comments on commit 6747ab9

Please sign in to comment.