Skip to content
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

spark agent #461 Spark 3.3 Delta And Cassandra tests #738

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ class CassandraSpec
}
}

it should "support Cassandra on Spark 3.0, 3.1 and 3.2" taggedAs
ignoreIf(ver"$SPARK_VERSION" < ver"3.0.0" || ver"$SPARK_VERSION" >= ver"3.3.0") in {
it should "support Cassandra on Spark 3.0 and higher" taggedAs
ignoreIf(ver"$SPARK_VERSION" < ver"3.0.0") in {
usingResource(new CassandraContainer("cassandra:3.11.2")) { container =>
container.start()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DeltaSpec extends AsyncFlatSpec
private val deltaPath = TempDirectory(prefix = "delta", pathOnly = true).deleteOnExit().toURI.toString

it should "support Delta Lake as a source" taggedAs
ignoreIf(ver"$SPARK_VERSION" < ver"2.4.2" || ver"$SPARK_VERSION" >= ver"3.3.0") in
ignoreIf(ver"$SPARK_VERSION" < ver"2.4.2") in
withNewSparkSession { implicit spark =>
withLineageTracking { captor =>
val testData: DataFrame = {
Expand Down Expand Up @@ -79,7 +79,7 @@ class DeltaSpec extends AsyncFlatSpec
}

it should "support insert into existing Delta Lake table" taggedAs
ignoreIf(ver"$SPARK_VERSION" < ver"2.4.2" || ver"$SPARK_VERSION" >= ver"3.3.0") in
ignoreIf(ver"$SPARK_VERSION" < ver"2.4.2") in
withNewSparkSession { implicit spark =>
withLineageTracking { lineageCaptor =>
val testData: DataFrame = {
Expand Down
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
<cassandra-connector-30.version>3.0.1</cassandra-connector-30.version>
<cassandra-connector-31.version>3.1.0</cassandra-connector-31.version>
<cassandra-connector-32.version>3.2.0</cassandra-connector-32.version>
<cassandra-connector-33.version>3.3.0</cassandra-connector-33.version>

<spark-excel.version>0.13.7</spark-excel.version>

Expand Down Expand Up @@ -799,9 +800,7 @@
<spark.version>${spark-33.version}</spark.version>
<delta.version>${delta-21.version}</delta.version>
<spark-excel.version>${spark-33.version}_0.18.7</spark-excel.version>

<!-- Cassandra connector for Spark 3.3 is not yet available, using the latest version -->
<cassandra-connector.version>${cassandra-connector-32.version}</cassandra-connector.version>
<cassandra-connector.version>${cassandra-connector-33.version}</cassandra-connector.version>
</properties>
<dependencyManagement>
<dependencies>
Expand Down
Loading