Skip to content

Commit 917de9a

Browse files
committed
Use Spark 3.5.7 for the Maven project (dev only).
1 parent 9140be6 commit 917de9a

File tree

11 files changed

+39
-27
lines changed

11 files changed

+39
-27
lines changed

pramen/core/pom.xml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,12 @@
7777
<dependency>
7878
<groupId>org.apache.httpcomponents</groupId>
7979
<artifactId>httpclient</artifactId>
80-
<version>4.5.13</version>
8180
</dependency>
8281

8382
<!-- Delta format -->
8483
<dependency>
8584
<groupId>io.delta</groupId>
86-
<artifactId>delta-core_${scala.compat.version}</artifactId>
85+
<artifactId>delta-spark_${scala.compat.version}</artifactId>
8786
</dependency>
8887

8988
<!-- MongoDB driver -->
@@ -97,34 +96,26 @@
9796
<groupId>org.postgresql</groupId>
9897
<artifactId>postgresql</artifactId>
9998
</dependency>
99+
100100
<dependency>
101101
<groupId>net.sourceforge.jtds</groupId>
102102
<artifactId>jtds</artifactId>
103-
<version>1.3.1</version>
104103
</dependency>
105104
<dependency>
106105
<groupId>com.microsoft.sqlserver</groupId>
107106
<artifactId>mssql-jdbc</artifactId>
108-
<!-- <version>12.8.1.jre8</version>-->
109107
</dependency>
110108

111109
<dependency>
112110
<groupId>com.mysql</groupId>
113111
<artifactId>mysql-connector-j</artifactId>
114-
<version>8.3.0</version>
115112
</dependency>
116113

117114
<dependency>
118115
<groupId>com.typesafe.slick</groupId>
119116
<artifactId>slick_${scala.compat.version}</artifactId>
120117
</dependency>
121118

122-
<!-- <dependency>-->
123-
<!-- <groupId>com.luckycatlabs</groupId>-->
124-
<!-- <artifactId>SunriseSunsetCalculator</artifactId>-->
125-
<!-- <version>1.2</version>-->
126-
<!-- </dependency>-->
127-
128119
<dependency>
129120
<groupId>com.typesafe.slick</groupId>
130121
<artifactId>slick-hikaricp_${scala.compat.version}</artifactId>

pramen/core/src/test/scala/za/co/absa/pramen/core/integration/IncrementalPipelineJdbcLongSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class IncrementalPipelineJdbcLongSuite extends AnyWordSpec
4242
with TextComparisonFixture {
4343

4444
val jdbcConfig: JdbcConfig = JdbcConfig(driver, Some(url), Nil, None, Some(user), Some(password))
45-
val pramenDb: PramenDb = PramenDb(jdbcConfig)
45+
lazy val pramenDb: PramenDb = PramenDb(jdbcConfig)
4646

4747
private val infoDate = LocalDate.of(2021, 2, 18)
4848

pramen/core/src/test/scala/za/co/absa/pramen/core/integration/IncrementalPipelineLongFixture.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class IncrementalPipelineLongFixture extends AnyWordSpec
4646
with TextComparisonFixture {
4747

4848
val jdbcConfig: JdbcConfig = JdbcConfig(driver, Some(url), Nil, None, Some(user), Some(password))
49-
val pramenDb: PramenDb = PramenDb(jdbcConfig)
49+
lazy val pramenDb: PramenDb = PramenDb(jdbcConfig)
5050

5151
before {
5252
pramenDb.rdb.executeDDL("DROP SCHEMA PUBLIC CASCADE;")

pramen/core/src/test/scala/za/co/absa/pramen/core/metadata/MetadataManagerJdbcSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import java.time.{LocalDate, ZoneOffset}
2727

2828
class MetadataManagerJdbcSuite extends AnyWordSpec with RelationalDbFixture with BeforeAndAfter with BeforeAndAfterAll {
2929
val jdbcConfig: JdbcConfig = JdbcConfig(driver, Some(url), Nil, None, Some(user), Some(password))
30-
val pramenDb: PramenDb = PramenDb(jdbcConfig)
30+
lazy val pramenDb: PramenDb = PramenDb(jdbcConfig)
3131
private val infoDate = LocalDate.of(2021, 2, 18)
3232
private val exampleInstant = infoDate.atStartOfDay().toInstant(ZoneOffset.UTC)
3333

pramen/core/src/test/scala/za/co/absa/pramen/core/tests/bookkeeper/BookkeeperJdbcSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import za.co.absa.pramen.core.reader.model.JdbcConfig
2525
class BookkeeperJdbcSuite extends BookkeeperCommonSuite with RelationalDbFixture with BeforeAndAfter with BeforeAndAfterAll {
2626

2727
val jdbcConfig: JdbcConfig = JdbcConfig(driver, Some(url), Nil, None, Some(user), Some(password))
28-
val pramenDb: PramenDb = PramenDb(jdbcConfig)
28+
lazy val pramenDb: PramenDb = PramenDb(jdbcConfig)
2929

3030
before {
3131
pramenDb.rdb.executeDDL("DROP SCHEMA PUBLIC CASCADE;")

pramen/core/src/test/scala/za/co/absa/pramen/core/tests/bookkeeper/BookkeeperSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class BookkeeperSuite extends AnyWordSpec
4343
import za.co.absa.pramen.core.bookkeeper.BookkeeperMongoDb._
4444

4545
val jdbcConfig: JdbcConfig = JdbcConfig(driver, Some(url), Nil, None, Option(user), Option(password))
46-
val pramenDb: PramenDb = PramenDb(jdbcConfig)
46+
lazy val pramenDb: PramenDb = PramenDb(jdbcConfig)
4747

4848
before {
4949
pramenDb.rdb.executeDDL("DROP SCHEMA PUBLIC CASCADE;")

pramen/core/src/test/scala/za/co/absa/pramen/core/tests/bookkeeper/OffsetManagerJdbcSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import java.time.{Instant, LocalDate}
2929

3030
class OffsetManagerJdbcSuite extends AnyWordSpec with RelationalDbFixture with BeforeAndAfter with BeforeAndAfterAll {
3131
val jdbcConfig: JdbcConfig = JdbcConfig(driver, Some(url), Nil, None, Some(user), Some(password))
32-
val pramenDb: PramenDb = PramenDb(jdbcConfig)
32+
lazy val pramenDb: PramenDb = PramenDb(jdbcConfig)
3333

3434
private val infoDate = LocalDate.of(2023, 8, 25)
3535

pramen/core/src/test/scala/za/co/absa/pramen/core/tests/journal/JournalJdbcSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class JournalJdbcSuite extends AnyWordSpec with SparkTestBase with BeforeAndAfte
2828
import TestCases._
2929

3030
val jdbcConfig: JdbcConfig = JdbcConfig(driver, Some(url), Nil, None, Option(user), Option(password))
31-
val pramenDb: PramenDb = PramenDb(jdbcConfig)
31+
lazy val pramenDb: PramenDb = PramenDb(jdbcConfig)
3232

3333
before {
3434
pramenDb.rdb.executeDDL("DROP SCHEMA PUBLIC CASCADE;")

pramen/core/src/test/scala/za/co/absa/pramen/core/tests/lock/TokenLockJdbcSuite.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,19 @@
1616

1717
package za.co.absa.pramen.core.tests.lock
1818

19+
import org.scalatest.concurrent.Eventually._
1920
import org.scalatest.wordspec.AnyWordSpec
2021
import org.scalatest.{BeforeAndAfter, BeforeAndAfterAll}
2122
import za.co.absa.pramen.core.fixtures.RelationalDbFixture
2223
import za.co.absa.pramen.core.lock.{TokenLock, TokenLockJdbc}
2324
import za.co.absa.pramen.core.rdb.PramenDb
2425
import za.co.absa.pramen.core.reader.model.JdbcConfig
26+
2527
import scala.concurrent.duration._
26-
import org.scalatest.concurrent.Eventually._
2728

2829
class TokenLockJdbcSuite extends AnyWordSpec with RelationalDbFixture with BeforeAndAfter with BeforeAndAfterAll {
2930
val jdbcConfig: JdbcConfig = JdbcConfig(driver, Some(url), Nil, None, Option(user), Option(password))
30-
val pramenDb: PramenDb = PramenDb(jdbcConfig)
31+
lazy val pramenDb: PramenDb = PramenDb(jdbcConfig)
3132

3233
before {
3334
pramenDb.rdb.executeDDL("DROP SCHEMA PUBLIC CASCADE;")

pramen/core/src/test/scala/za/co/absa/pramen/core/tests/sql/SqlGeneratorSasSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class SqlGeneratorSasSuite extends AnyWordSpec with RelationalDbFixture {
4242

4343
val driverSas = "com.sas.rio.MVADriver"
4444

45-
val connection: Connection = getConnection
45+
lazy val connection: Connection = getConnection
4646

4747
val gen: SqlGenerator = getSqlGenerator(driverSas, sqlConfigDate)
4848
val genStr: SqlGenerator = getSqlGenerator(driverSas, sqlConfigString)

0 commit comments

Comments
 (0)