-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-18127] Add hooks and extension points to Spark #17724
Conversation
cc @hvanhovell |
Test build #76048 has finished for PR 17724 at commit
|
LGTM |
Test build #76049 has finished for PR 17724 at commit
|
* Inject extensions into the [[SparkSession]]. This allows a user to add Analyzer rules, | ||
* Optimizer rules, Planning Strategies or a customized parser. | ||
* | ||
* @since 2.3.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the JIRA, the target version is 2.2. Do we still plan to backport it to 2.2.0?
* .master("...") | ||
* .conf("...", true) | ||
* .withExtensions { extensions => | ||
* extensions.injectAnalyzerRule { session => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
injectAnalyzerRule
-> buildResolutionRules
?
LGTM |
Test build #76146 has finished for PR 17724 at commit
|
Can we add SQL to pr title ? Extension to spark implies core, and means something different :-) |
## What changes were proposed in this pull request? This patch adds support for customizing the spark session by injecting user-defined custom extensions. This allows a user to add custom analyzer rules/checks, optimizer rules, planning strategies or even a customized parser. ## How was this patch tested? Unit Tests in SparkSessionExtensionSuite Author: Sameer Agarwal <sameerag@cs.berkeley.edu> Closes #17724 from sameeragarwal/session-extensions. (cherry picked from commit caf3920) Signed-off-by: Xiao Li <gatorsmile@gmail.com>
Thanks! Merging to master/2.2 |
@mridulm my apologies -- I agree with your point but missed seeing this comment before the patch was merged. I hope the conf name ( |
What changes were proposed in this pull request?
This patch adds support for customizing the spark session by injecting user-defined custom extensions. This allows a user to add custom analyzer rules/checks, optimizer rules, planning strategies or even a customized parser.
How was this patch tested?
Unit Tests in SparkSessionExtensionSuite