You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by di...@apache.org on 2026/09/30 13:59:06 UTC

(polaris) branch main updated: Fix JdbcBasePersistenceImplTest compilation after the single DDL init script change (#5654)

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

dimas-b 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 92fe15a273 Fix JdbcBasePersistenceImplTest compilation after the single DDL init script change (#5654)
92fe15a273 is described below

commit 92fe15a273972d21948d68a30cbbb7d833b3ccd9
Author: Ayush Saxena <ay...@apache.org>
AuthorDate: Wed Sep 30 19:29:00 2026 +0530

    Fix JdbcBasePersistenceImplTest compilation after the single DDL init script change (#5654)
    
    #5349 dropped DatabaseType.getLatestSchemaVersion() and the schemaVersion
    parameter from the newH2DatasourceOperations and newTestPersistence test
    helpers, but one call site still passed it, so polaris-relational-jdbc no
    longer compiled its test sources and the main CI build failed.
    
    Switch the remaining call site to the single-argument helpers, as the other
    call sites in the file already do.
---
 .../persistence/relational/jdbc/JdbcBasePersistenceImplTest.java     | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/persistence/relational-jdbc/src/test/java/org/apache/polaris/persistence/relational/jdbc/JdbcBasePersistenceImplTest.java b/persistence/relational-jdbc/src/test/java/org/apache/polaris/persistence/relational/jdbc/JdbcBasePersistenceImplTest.java
index 68e103cd9b..783df88295 100644
--- a/persistence/relational-jdbc/src/test/java/org/apache/polaris/persistence/relational/jdbc/JdbcBasePersistenceImplTest.java
+++ b/persistence/relational-jdbc/src/test/java/org/apache/polaris/persistence/relational/jdbc/JdbcBasePersistenceImplTest.java
@@ -615,10 +615,9 @@ class JdbcBasePersistenceImplTest {
   @Test
   void rotatePrincipalSecrets_concurrentCollision_throwsRetryOnConcurrencyException()
       throws SQLException, IOException {
-    int schemaVersion = DatabaseType.H2.getLatestSchemaVersion();
     DatasourceOperations datasourceOperations =
-        newH2DatasourceOperations("rotate_secrets_collision", schemaVersion);
-    TestPersistence tp = newTestPersistence(datasourceOperations, schemaVersion);
+        newH2DatasourceOperations("rotate_secrets_collision");
+    TestPersistence tp = newTestPersistence(datasourceOperations);
     JdbcBasePersistenceImpl impl = tp.impl();
     PolarisCallContext callCtx = tp.callCtx();