-
Notifications
You must be signed in to change notification settings - Fork 315
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
Support Spark 3.0.2, 3.1.1 #830
Conversation
@@ -30,7 +30,7 @@ public DeltaTableTests(DeltaFixture fixture) | |||
/// Run the end-to-end scenario from the Delta Quickstart tutorial. | |||
/// </summary> | |||
/// <see cref="https://docs.delta.io/latest/quick-start.html"/> | |||
[SkipIfSparkVersionIsLessThan(Versions.V2_4_2)] | |||
[SkipIfSparkVersionIsNotInRange(Versions.V2_4_2, Versions.V3_1_1)] |
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.
Disable Delta tests that have code path that creates a org.apache.spark.sql.catalyst.expressions.Alias
object. Delta 0.8.0
is not compatible with Spark 3.1.1
delta-io/delta#594
@@ -85,6 +80,12 @@ public void TestSignaturesV2_3_X() | |||
dfw.Text($"{tempDir.Path}TestTextPath"); | |||
|
|||
dfw.Csv($"{tempDir.Path}TestCsvPath"); | |||
|
|||
dfw.Option("path", tempDir.Path).SaveAsTable("TestTable"); |
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.
Setting path
option and then calling save is not supported by default unless spark.sql.legacy.pathOptionBehavior.enabled
conf is set. Reverse order in test.
@@ -63,6 +62,7 @@ public void TestSignaturesV2_3_X() | |||
dsr.Parquet(Path.Combine(TestEnvironment.ResourceDirectory, "users.parquet"))); | |||
Assert.IsType<DataFrame> | |||
(dsr.Text(Path.Combine(TestEnvironment.ResourceDirectory, "people.txt"))); | |||
Assert.IsType<DataFrame>(dsr.Format("json").Option("path", jsonFilePath).Load()); |
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.
Setting path
option and then calling load
is not supported by default unless spark.sql.legacy.pathOptionBehavior.enabled
conf is set. Reverse order in test.
src/scala/microsoft-spark-3-0/src/main/scala/org/apache/spark/deploy/dotnet/DotnetRunner.scala
Show resolved
Hide resolved
@suhsteve Could you add a description of the changes made as a part of this PR? |
src/scala/microsoft-spark-3-1/src/main/scala/org/apache/spark/api/dotnet/DotnetBackend.scala
Show resolved
Hide resolved
Done. |
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.
A couple of things:
Can you spit these into following PRs?
- Support 3.0.2
- PR for just creating a new JAR microsoft-spark-3.1 JAR, but no need to build it, but just copying files.
- PR for supporting Spark 3.1. (.NET changes + build)
BTW, is this backward compatible? I see lots of filtered tests. We should make this backward compatible if possible, o.w., we should release 2.0.
3.0.2 spark/src/scala/microsoft-spark-3-0/src/main/scala/org/apache/spark/deploy/dotnet/DotnetRunner.scala Line 37 in 550835f
3.1.1
Forward compatible tests for 3.1 cannot be run because when we check out |
OK, I will check again with new PRs. So you are saying we are good to go with 1.1, right? |
Add support for Spark
3.0.2
and3.1.1
Addresses #827 and #811