-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-16503] SparkSession should provide Spark version #14165
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
Conversation
|
Test build #62197 has finished for PR 14165 at commit
|
|
Test build #62199 has finished for PR 14165 at commit
|
| sparkContext.assertNotStopped() | ||
|
|
||
| /** The version of Spark on which this application is running. */ | ||
| def version: String = SPARK_VERSION |
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.
add @SInCE version to the comment.
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.
if you fix this asap, I can port this in 2.0 too.
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.
fixing this; thanks!
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.
@rxin May I ask when should we use the @Since java annotation and when use @since in javadoc?
|
LGTM pending Jenkins. |
|
Test build #62223 has finished for PR 14165 at commit
|
|
Test build #62216 has finished for PR 14165 at commit
|
|
Test build #62220 has finished for PR 14165 at commit
|
|
Test build #62221 has finished for PR 14165 at commit
|
|
Jenkins retest this please |
|
Test build #62236 has finished for PR 14165 at commit
|
|
Merging in master/2.0. Thanks. |
## What changes were proposed in this pull request? This patch enables SparkSession to provide spark version. ## How was this patch tested? Manual test: ``` scala> sc.version res0: String = 2.1.0-SNAPSHOT scala> spark.version res1: String = 2.1.0-SNAPSHOT ``` ``` >>> sc.version u'2.1.0-SNAPSHOT' >>> spark.version u'2.1.0-SNAPSHOT' ``` Author: Liwei Lin <lwlin7@gmail.com> Closes #14165 from lw-lin/add-version. (cherry picked from commit 39c836e) Signed-off-by: Reynold Xin <rxin@databricks.com>
What changes were proposed in this pull request?
This patch enables SparkSession to provide spark version.
How was this patch tested?
Manual test: