jamisonbennett commented on a change in pull request #23398: [SPARK-26493][SQL]
Allow multiple spark.sql.extensions
URL: https://github.com/apache/spark/pull/23398#discussion_r245484843
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/StaticSQLConf.scala
##########
@@ -99,9 +99,15 @@ object StaticSQLConf {
.createWithDefault(false)
val SPARK_SESSION_EXTENSIONS = buildStaticConf("spark.sql.extensions")
- .doc("Name of the class used to configure Spark Session extensions. The
class should " +
- "implement Function1[SparkSessionExtension, Unit], and must have a
no-args constructor.")
+ .doc("A comma-separated list of classes that implement " +
+ "Function1[SparkSessionExtension, Unit] used to configure Spark Session
extensions. The " +
+ "classes must have a no-args constructor. If multiple extensions are
specified, they are " +
+ "applied in the specified order. For the case of rules and planner
strategies, they are " +
+ "applied in the specified order. For the case of parsers, the last
parser is used and each " +
+ "parser can delegate to its predecessor. For the case of function name
conflicts, the last " +
Review comment:
I added an example to the documentation of `SparkSessionExtensions`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]