-
Notifications
You must be signed in to change notification settings - Fork 121
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
Updated dependencies for Spark 3.0.0 #30
Draft
dovijoel
wants to merge
4
commits into
microsoft:master
Choose a base branch
from
dovijoel:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -348,3 +348,6 @@ MigrationBackup/ | |
|
||
# Ionide (cross platform F# VS Code tools) working folder | ||
.ionide/ | ||
|
||
target | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,9 @@ organization := "com.microsoft.sqlserver.jdbc.spark" | |
|
||
version := "1.0.0" | ||
|
||
scalaVersion := "2.11.12" | ||
|
||
val sparkVersion = "2.4.6" | ||
scalaVersion := "2.12.11" | ||
ThisBuild / useCoursier := false | ||
val sparkVersion = "3.0.0" | ||
|
||
javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint") | ||
|
||
|
@@ -19,11 +19,11 @@ libraryDependencies ++= Seq( | |
"tests", | ||
"org.apache.spark" %% "spark-catalyst" % sparkVersion % "test" classifier | ||
"tests", | ||
"org.scalatest" %% "scalatest" % "3.0.5" % "test", | ||
"org.scalatest" %% "scalatest" % "3.0.8" % "test", | ||
"com.novocode" % "junit-interface" % "0.11" % "test", | ||
|
||
//SQLServer JDBC jars | ||
"com.microsoft.sqlserver" % "mssql-jdbc" % "7.2.1.jre8" | ||
"com.microsoft.sqlserver" % "mssql-jdbc" % "8.2.1.jre8" | ||
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. why v8.2 for JDBC driver? Did 7.2 give some issue or was this just alignment to latest. 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. Spark 3 is JDK 11, you need to use
|
||
) | ||
|
||
scalacOptions := Seq("-unchecked", "-deprecation", "evicted") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Would need to support sparkVersion 2.4/Scala 2.11 combo as well.
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.
Ok, I will look into supporting both scenarios.
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.
I think you can use something like
crossScalaVersions := Seq("2.12.10", "2.11.12")
to do this
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.
@rajmera3 it won't work, because there is no Spark 3.0 with Scala 2.11. Here we need to have a combo of (Spark 2.4 + Scala 2.11) & (Spark 3.0 + Scala 2.12)
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.
One option here is to make main line as Spark3.0/Scala.2.12 and stable/old version to a separate branch e.g. Spark2.4 branch.