You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@texera.apache.org by xi...@apache.org on 2025/10/03 19:18:49 UTC

(texera) branch xiaozhen-fix-ci-iceberg-catalog-driver created (now 6c7d78e6b3)

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

xiaozhenliu pushed a change to branch xiaozhen-fix-ci-iceberg-catalog-driver
in repository https://gitbox.apache.org/repos/asf/texera.git


      at 6c7d78e6b3 explicitly load jdbc driver when accessing iceberg postgres catalog.

This branch includes the following new commits:

     new 6c7d78e6b3 explicitly load jdbc driver when accessing iceberg postgres catalog.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(texera) 01/01: explicitly load jdbc driver when accessing iceberg postgres catalog.

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaozhenliu pushed a commit to branch xiaozhen-fix-ci-iceberg-catalog-driver
in repository https://gitbox.apache.org/repos/asf/texera.git

commit 6c7d78e6b3e006afbf46fcff11cc8e2dad0f4bb7
Author: Xiao-zhen-Liu <xi...@uci.edu>
AuthorDate: Fri Oct 3 12:18:42 2025 -0700

    explicitly load jdbc driver when accessing iceberg postgres catalog.
---
 .../src/main/scala/edu/uci/ics/amber/util/IcebergUtil.scala            | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/core/workflow-core/src/main/scala/edu/uci/ics/amber/util/IcebergUtil.scala b/core/workflow-core/src/main/scala/edu/uci/ics/amber/util/IcebergUtil.scala
index 85d4cfa22f..abd839f72f 100644
--- a/core/workflow-core/src/main/scala/edu/uci/ics/amber/util/IcebergUtil.scala
+++ b/core/workflow-core/src/main/scala/edu/uci/ics/amber/util/IcebergUtil.scala
@@ -117,6 +117,9 @@ object IcebergUtil {
       catalogName: String,
       warehouse: Path
   ): JdbcCatalog = {
+    // Occasionally the jdbc driver cannot be found during CI run.
+    // Explicitly load the JDBC driver to avoid flaky CI failures.
+    Class.forName("org.postgresql.Driver")
     val catalog = new JdbcCatalog()
     catalog.initialize(
       catalogName,