You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by sn...@apache.org on 2026/04/21 07:48:31 UTC

(polaris) branch main updated: Fix deprecation warning in RelationalJdbcIdempotencyStorePostgresIT (#4253)

This is an automated email from the ASF dual-hosted git repository.

snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new 4d2b25a9a8 Fix deprecation warning in RelationalJdbcIdempotencyStorePostgresIT (#4253)
4d2b25a9a8 is described below

commit 4d2b25a9a89e52bef5da1a2f0ef1e8cb4d429fbf
Author: Robert Stupp <sn...@snazy.de>
AuthorDate: Tue Apr 21 09:48:24 2026 +0200

    Fix deprecation warning in RelationalJdbcIdempotencyStorePostgresIT (#4253)
    
    Replace deprecated `PostgreSQLContainer` type.
---
 .../jdbc/idempotency/RelationalJdbcIdempotencyStorePostgresIT.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/persistence/relational-jdbc/src/test/java/org/apache/polaris/persistence/relational/jdbc/idempotency/RelationalJdbcIdempotencyStorePostgresIT.java b/persistence/relational-jdbc/src/test/java/org/apache/polaris/persistence/relational/jdbc/idempotency/RelationalJdbcIdempotencyStorePostgresIT.java
index ee95671dcd..8c6f70b26a 100644
--- a/persistence/relational-jdbc/src/test/java/org/apache/polaris/persistence/relational/jdbc/idempotency/RelationalJdbcIdempotencyStorePostgresIT.java
+++ b/persistence/relational-jdbc/src/test/java/org/apache/polaris/persistence/relational/jdbc/idempotency/RelationalJdbcIdempotencyStorePostgresIT.java
@@ -34,16 +34,16 @@ import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.BeforeAll;
 import org.junit.jupiter.api.Test;
 import org.postgresql.ds.PGSimpleDataSource;
-import org.testcontainers.containers.PostgreSQLContainer;
 import org.testcontainers.junit.jupiter.Container;
 import org.testcontainers.junit.jupiter.Testcontainers;
+import org.testcontainers.postgresql.PostgreSQLContainer;
 
 @Testcontainers
 public class RelationalJdbcIdempotencyStorePostgresIT {
 
   @Container
-  private static final PostgreSQLContainer<?> POSTGRES =
-      new PostgreSQLContainer<>(
+  private static final PostgreSQLContainer POSTGRES =
+      new PostgreSQLContainer(
           containerSpecHelper("postgres", PostgresRelationalJdbcLifeCycleManagement.class)
               .dockerImageName(null)
               .asCompatibleSubstituteFor("postgres"));