This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 8c4009523d62 [SPARK-55571][SQL][TESTS] Upgrade `PostgreSQL` image to
`18.2-alpine`
8c4009523d62 is described below
commit 8c4009523d623f45791c6a497a1394ec3b0aabf6
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Mon Feb 23 09:55:15 2026 -0800
[SPARK-55571][SQL][TESTS] Upgrade `PostgreSQL` image to `18.2-alpine`
### What changes were proposed in this pull request?
This PR aims to upgrade `PostgreSQL` image to `18.2-alpine` for Apache
Spark 4.2.0.
### Why are the changes needed?
To maintain our JDBC test coverage up-to-date by testing against the latest
version of `PostgeSQL 18.2`.
- https://www.postgresql.org/docs/release/18.2/ (2026-02-12)
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: `Gemini 3.1 Pro (High)` on `Antigravity`
Closes #54345 from dongjoon-hyun/SPARK-55571.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.../scala/org/apache/spark/sql/jdbc/PostgresDatabaseOnDocker.scala | 2 +-
.../scala/org/apache/spark/sql/jdbc/PostgresIntegrationSuite.scala | 4 ++--
.../scala/org/apache/spark/sql/jdbc/PostgresKrbIntegrationSuite.scala | 4 ++--
.../org/apache/spark/sql/jdbc/querytest/GeneratedSubquerySuite.scala | 4 ++--
.../apache/spark/sql/jdbc/querytest/PostgresSQLQueryTestSuite.scala | 4 ++--
.../scala/org/apache/spark/sql/jdbc/v2/PostgresIntegrationSuite.scala | 4 ++--
.../scala/org/apache/spark/sql/jdbc/v2/PostgresNamespaceSuite.scala | 4 ++--
.../spark/sql/jdbc/v2/join/PostgresJoinPushdownIntegrationSuite.scala | 4 ++--
8 files changed, 15 insertions(+), 15 deletions(-)
diff --git
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresDatabaseOnDocker.scala
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresDatabaseOnDocker.scala
index db2495ad3c69..2fe9e6e0ce3a 100644
---
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresDatabaseOnDocker.scala
+++
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresDatabaseOnDocker.scala
@@ -21,7 +21,7 @@ import org.apache.spark.internal.Logging
class PostgresDatabaseOnDocker extends DatabaseOnDocker with Logging {
lazy override val imageName: String =
- sys.env.getOrElse("POSTGRES_DOCKER_IMAGE_NAME", "postgres:17.2-alpine")
+ sys.env.getOrElse("POSTGRES_DOCKER_IMAGE_NAME", "postgres:18.2-alpine")
private val postgres_user = "postgres"
private val postgres_password = "rootpass"
override val env: Map[String, String] = Map(
diff --git
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresIntegrationSuite.scala
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresIntegrationSuite.scala
index bae08570b666..9e08cc976bb5 100644
---
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresIntegrationSuite.scala
+++
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresIntegrationSuite.scala
@@ -32,9 +32,9 @@ import org.apache.spark.sql.types._
import org.apache.spark.tags.DockerTest
/**
- * To run this test suite for a specific version (e.g., postgres:17.2-alpine):
+ * To run this test suite for a specific version (e.g., postgres:18.2-alpine):
* {{{
- * ENABLE_DOCKER_INTEGRATION_TESTS=1
POSTGRES_DOCKER_IMAGE_NAME=postgres:17.2-alpine
+ * ENABLE_DOCKER_INTEGRATION_TESTS=1
POSTGRES_DOCKER_IMAGE_NAME=postgres:18.2-alpine
* ./build/sbt -Pdocker-integration-tests
* "docker-integration-tests/testOnly
org.apache.spark.sql.jdbc.PostgresIntegrationSuite"
* }}}
diff --git
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresKrbIntegrationSuite.scala
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresKrbIntegrationSuite.scala
index b3cfe8bd77e2..41a7efb8c94a 100644
---
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresKrbIntegrationSuite.scala
+++
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresKrbIntegrationSuite.scala
@@ -25,9 +25,9 @@ import
org.apache.spark.sql.execution.datasources.jdbc.connection.SecureConnecti
import org.apache.spark.tags.DockerTest
/**
- * To run this test suite for a specific version (e.g., postgres:17.2-alpine):
+ * To run this test suite for a specific version (e.g., postgres:18.2-alpine):
* {{{
- * ENABLE_DOCKER_INTEGRATION_TESTS=1
POSTGRES_DOCKER_IMAGE_NAME=postgres:17.2-alpine
+ * ENABLE_DOCKER_INTEGRATION_TESTS=1
POSTGRES_DOCKER_IMAGE_NAME=postgres:18.2-alpine
* ./build/sbt -Pdocker-integration-tests
* "docker-integration-tests/testOnly *PostgresKrbIntegrationSuite"
* }}}
diff --git
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/querytest/GeneratedSubquerySuite.scala
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/querytest/GeneratedSubquerySuite.scala
index eabdb033ebc2..d11e59bdfb61 100644
---
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/querytest/GeneratedSubquerySuite.scala
+++
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/querytest/GeneratedSubquerySuite.scala
@@ -29,9 +29,9 @@ import org.apache.spark.tags.DockerTest
/**
* This suite is used to generate subqueries, and test Spark against Postgres.
- * To run this test suite for a specific version (e.g., postgres:17.2-alpine):
+ * To run this test suite for a specific version (e.g., postgres:18.2-alpine):
* {{{
- * ENABLE_DOCKER_INTEGRATION_TESTS=1
POSTGRES_DOCKER_IMAGE_NAME=postgres:17.2-alpine
+ * ENABLE_DOCKER_INTEGRATION_TESTS=1
POSTGRES_DOCKER_IMAGE_NAME=postgres:18.2-alpine
* ./build/sbt -Pdocker-integration-tests
* "docker-integration-tests/testOnly
org.apache.spark.sql.jdbc.GeneratedSubquerySuite"
* }}}
diff --git
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/querytest/PostgresSQLQueryTestSuite.scala
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/querytest/PostgresSQLQueryTestSuite.scala
index 4b7fc0c3e20c..2f9653457eeb 100644
---
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/querytest/PostgresSQLQueryTestSuite.scala
+++
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/querytest/PostgresSQLQueryTestSuite.scala
@@ -31,9 +31,9 @@ import org.apache.spark.tags.DockerTest
* confidence, and you won't have to manually verify the golden files
generated with your test.
* 2. Add this line to your .sql file: --ONLY_IF spark
*
- * Note: To run this test suite for a specific version (e.g.,
postgres:17.2-alpine):
+ * Note: To run this test suite for a specific version (e.g.,
postgres:18.2-alpine):
* {{{
- * ENABLE_DOCKER_INTEGRATION_TESTS=1
POSTGRES_DOCKER_IMAGE_NAME=postgres:17.2-alpine
+ * ENABLE_DOCKER_INTEGRATION_TESTS=1
POSTGRES_DOCKER_IMAGE_NAME=postgres:18.2-alpine
* ./build/sbt -Pdocker-integration-tests
* "testOnly org.apache.spark.sql.jdbc.PostgreSQLQueryTestSuite"
* }}}
diff --git
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/PostgresIntegrationSuite.scala
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/PostgresIntegrationSuite.scala
index 5211b5d328e9..faeb39108c4f 100644
---
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/PostgresIntegrationSuite.scala
+++
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/PostgresIntegrationSuite.scala
@@ -28,9 +28,9 @@ import org.apache.spark.sql.types._
import org.apache.spark.tags.DockerTest
/**
- * To run this test suite for a specific version (e.g., postgres:17.2-alpine)
+ * To run this test suite for a specific version (e.g., postgres:18.2-alpine)
* {{{
- * ENABLE_DOCKER_INTEGRATION_TESTS=1
POSTGRES_DOCKER_IMAGE_NAME=postgres:17.2-alpine
+ * ENABLE_DOCKER_INTEGRATION_TESTS=1
POSTGRES_DOCKER_IMAGE_NAME=postgres:18.2-alpine
* ./build/sbt -Pdocker-integration-tests "testOnly
*v2.PostgresIntegrationSuite"
* }}}
*/
diff --git
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/PostgresNamespaceSuite.scala
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/PostgresNamespaceSuite.scala
index f84bdb46850f..ced9e2a66ce0 100644
---
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/PostgresNamespaceSuite.scala
+++
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/PostgresNamespaceSuite.scala
@@ -26,9 +26,9 @@ import org.apache.spark.sql.util.CaseInsensitiveStringMap
import org.apache.spark.tags.DockerTest
/**
- * To run this test suite for a specific version (e.g., postgres:17.2-alpine):
+ * To run this test suite for a specific version (e.g., postgres:18.2-alpine):
* {{{
- * ENABLE_DOCKER_INTEGRATION_TESTS=1
POSTGRES_DOCKER_IMAGE_NAME=postgres:17.2-alpine
+ * ENABLE_DOCKER_INTEGRATION_TESTS=1
POSTGRES_DOCKER_IMAGE_NAME=postgres:18.2-alpine
* ./build/sbt -Pdocker-integration-tests "testOnly
*v2.PostgresNamespaceSuite"
* }}}
*/
diff --git
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/join/PostgresJoinPushdownIntegrationSuite.scala
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/join/PostgresJoinPushdownIntegrationSuite.scala
index e515eb698f60..c994605adcfa 100644
---
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/join/PostgresJoinPushdownIntegrationSuite.scala
+++
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/join/PostgresJoinPushdownIntegrationSuite.scala
@@ -24,9 +24,9 @@ import
org.apache.spark.sql.jdbc.v2.JDBCV2JoinPushdownIntegrationSuiteBase
import org.apache.spark.tags.DockerTest
/**
- * To run this test suite for a specific version (e.g., postgres:17.2-alpine)
+ * To run this test suite for a specific version (e.g., postgres:18.2-alpine)
* {{{
- * ENABLE_DOCKER_INTEGRATION_TESTS=1
POSTGRES_DOCKER_IMAGE_NAME=postgres:17.2-alpine
+ * ENABLE_DOCKER_INTEGRATION_TESTS=1
POSTGRES_DOCKER_IMAGE_NAME=postgres:18.2-alpine
* ./build/sbt -Pdocker-integration-tests "testOnly
*v2.PostgresIntegrationSuite"
* }}}
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]