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

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


The following commit(s) were added to refs/heads/master by this push:
     new bd157e6a62e [fix](jdbc catalog) ensure initialization before fetching 
row count (#49442)
bd157e6a62e is described below

commit bd157e6a62e6a4c5a2c87f7304084783b3eb12a1
Author: zy-kkk <zhongy...@gmail.com>
AuthorDate: Tue Mar 25 18:22:08 2025 +0800

    [fix](jdbc catalog) ensure initialization before fetching row count (#49442)
    
    We must add makeSureInitialized() in the fetchRowCount() method to
    ensure the initialization of catalog related resources.
---
 .../main/java/org/apache/doris/datasource/jdbc/JdbcExternalTable.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/JdbcExternalTable.java
 
b/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/JdbcExternalTable.java
index 426e75231f9..b3ff728bb7d 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/JdbcExternalTable.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/JdbcExternalTable.java
@@ -199,6 +199,7 @@ public class JdbcExternalTable extends ExternalTable {
 
     @Override
     public long fetchRowCount() {
+        makeSureInitialized();
         Map<String, String> params = new HashMap<>();
         params.put("ctlName", catalog.getName());
         params.put("dbName", this.db.getRemoteName());


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to