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/06/08 19:06:25 UTC
(polaris) branch main updated: Fix unnecessary type cast in JdbcMetaStoreManagerFactory (#4654)
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 64218f1ec8 Fix unnecessary type cast in JdbcMetaStoreManagerFactory (#4654)
64218f1ec8 is described below
commit 64218f1ec899c0d130ddec672e1bdd4b5ed59be5
Author: Dmitri Bourlatchkov <dm...@gmail.com>
AuthorDate: Mon Jun 8 15:06:20 2026 -0400
Fix unnecessary type cast in JdbcMetaStoreManagerFactory (#4654)
---
.../persistence/relational/jdbc/JdbcMetaStoreManagerFactory.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/persistence/relational-jdbc/src/main/java/org/apache/polaris/persistence/relational/jdbc/JdbcMetaStoreManagerFactory.java b/persistence/relational-jdbc/src/main/java/org/apache/polaris/persistence/relational/jdbc/JdbcMetaStoreManagerFactory.java
index 3917649b5b..1a4c7b5ba8 100644
--- a/persistence/relational-jdbc/src/main/java/org/apache/polaris/persistence/relational/jdbc/JdbcMetaStoreManagerFactory.java
+++ b/persistence/relational-jdbc/src/main/java/org/apache/polaris/persistence/relational/jdbc/JdbcMetaStoreManagerFactory.java
@@ -255,9 +255,7 @@ public class JdbcMetaStoreManagerFactory implements MetaStoreManagerFactory {
@Override
public MetricsPersistence getOrCreateMetricsPersistence(RealmContext realmContext) {
- // JdbcBasePersistenceImpl implements both BasePersistence and MetricsPersistence, so reuse the
- // session creation path rather than building a second, independent persistence instance.
- return (MetricsPersistence) getOrCreateSession(realmContext);
+ return createJdbcPersistence(realmContext);
}
@Override