-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-20048][SQL] Cloning SessionState does not clone query execution listeners #17379
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,19 +28,7 @@ import org.apache.spark.sql.hive.client.HiveClient | |
| import org.apache.spark.sql.internal.{BaseSessionStateBuilder, SessionResourceLoader, SessionState} | ||
|
|
||
| /** | ||
| * Entry object for creating a Hive aware [[SessionState]]. | ||
| */ | ||
| private[hive] object HiveSessionState { | ||
| /** | ||
| * Create a new Hive aware [[SessionState]]. for the given session. | ||
| */ | ||
| def apply(session: SparkSession): SessionState = { | ||
| new HiveSessionStateBuilder(session).build() | ||
| } | ||
| } | ||
|
|
||
| /** | ||
| * Builder that produces a [[HiveSessionState]]. | ||
| * Builder that produces a Hive aware [[SessionState]]. | ||
| */ | ||
| @Experimental | ||
| @InterfaceStability.Unstable | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file should not be named HiveSessionState anymore. It doesnt even have the class HiveSessionState. It does have an object HiveSession, but do we need that object any more?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Renamed, removed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, lets rename the file to |
||
|
|
||
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.
Minor: I was wondering why you moved this into the builder?
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.
It was the only thing not initialized in the builder, thought it would be more consistent to have all initialization in the builder. Is this okay?