Skip to content

Commit 4e84a6f

Browse files
committed
avoid API change
1 parent 8ab0b79 commit 4e84a6f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,17 @@ object SparkSession extends Logging {
894894
*
895895
* @since 2.2.0
896896
*/
897+
def withExtensions(f: SparkSessionExtensions => Unit): Builder = synchronized {
898+
f(extensions)
899+
this
900+
}
901+
902+
/**
903+
* Inject extensions into the [[SparkSession]]. This allows a user to add Analyzer rules,
904+
* Optimizer rules, Planning Strategies or a customized parser.
905+
*
906+
* @since 3.2.0
907+
*/
897908
def withExtensions(f: SparkSessionExtensionsProvider): Builder = synchronized {
898909
f(extensions)
899910
this

0 commit comments

Comments
 (0)