Skip to content

Commit

Permalink
Merge pull request #1619 from byzer-org/master
Browse files Browse the repository at this point in the history
fix variable with session scope fails when visibility is not set
  • Loading branch information
chncaesar authored Dec 14, 2021
2 parents d6a5305 + 19c0ae2 commit 31c132e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class ScriptSQLExecListener(val _sparkSession: SparkSession, val _defaultPathPre
case Some(items) =>
items.collect().foreach { item =>
addEnv(item.k, item.v)
addEnvVisibility(item.k, SetVisibilityParameter(item.v, getVisibility(item.config("visibility"))))
addEnvVisibility(item.k, SetVisibilityParameter(item.v, getVisibility(item.config.getOrElse("visibility","all"))))
}
case None =>
}
Expand Down

0 comments on commit 31c132e

Please sign in to comment.