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 <[email protected]>
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,

Reply via email to