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

vinoyang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new c291b05699 [HUDI-4218] [HUDI-4218] Expose the real exception 
information when an exception occurs in the tableExists method (#5827)
c291b05699 is described below

commit c291b056996f7c5c2c25ad75f5ac57dd64028327
Author: 董可伦 <[email protected]>
AuthorDate: Wed Jun 15 18:10:35 2022 +0800

    [HUDI-4218] [HUDI-4218] Expose the real exception information when an 
exception occurs in the tableExists method (#5827)
---
 hudi-utilities/src/main/java/org/apache/hudi/utilities/UtilHelpers.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hudi-utilities/src/main/java/org/apache/hudi/utilities/UtilHelpers.java 
b/hudi-utilities/src/main/java/org/apache/hudi/utilities/UtilHelpers.java
index f389695f7b..175ba3d66f 100644
--- a/hudi-utilities/src/main/java/org/apache/hudi/utilities/UtilHelpers.java
+++ b/hudi-utilities/src/main/java/org/apache/hudi/utilities/UtilHelpers.java
@@ -403,7 +403,7 @@ public class UtilHelpers {
       
statement.setQueryTimeout(Integer.parseInt(options.get(JDBCOptions.JDBC_QUERY_TIMEOUT())));
       statement.executeQuery();
     } catch (SQLException e) {
-      return false;
+      throw new HoodieException(e);
     }
     return true;
   }

Reply via email to