Skip to content

Commit

Permalink
add more optional session level to get conf
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuan1223 committed Oct 31, 2023
1 parent 4d70902 commit 84c4568
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class PlanOnlyStatement(
withLocalProperties {
SQLConf.withExistingConf(spark.sessionState.conf) {
val parsed = spark.sessionState.sqlParser.parsePlan(statement)

logger.warn("planExcludes: {}", planExcludes.toString())
parsed match {
case cmd if planExcludes.contains(cmd.getClass.getSimpleName) =>
result = spark.sql(statement)
Expand Down

0 comments on commit 84c4568

Please sign in to comment.