-
Notifications
You must be signed in to change notification settings - Fork 29k
Remove hardcoded Spark version string to use SBT defined version instead #600
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 3 commits
12769f4
f7c2298
d26bc1e
0f88e95
142be89
da8886e
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 |
|---|---|---|
|
|
@@ -1037,6 +1037,11 @@ private[spark] object Utils extends Logging { | |
| obj.getClass.getSimpleName.replace("$", "") | ||
| } | ||
|
|
||
| /** Return the current version of Spark */ | ||
| def getSparkVersion(): String = { | ||
|
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. If you intend it to be called without parentheses, it should also be defined without them.
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. thanks, i'll fix this |
||
| getClass.getPackage.getImplementationVersion | ||
|
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. Does this also work in the maven build?
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. I did not check as I was not really aware of the Maven build. I'll check this now.
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. It seems to work as well.
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. Note that this manifest property must be correctly set from the build system, but it's good to know if both systems do so.
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. Indeed. outputs: in both cases |
||
| } | ||
|
|
||
| /** Return an option that translates JNothing to None */ | ||
| def jsonOption(json: JValue): Option[JValue] = { | ||
| json match { | ||
|
|
||
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.
This should be be:
instead, I forgot to update it.