This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new e932094a056 branch-2.1: [fix](jdbc catalog) ensure initialization
before fetching row count #49442 (#49476)
e932094a056 is described below
commit e932094a056d21449708777c8a5f88182f9c9785
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Mar 29 20:25:09 2025 +0800
branch-2.1: [fix](jdbc catalog) ensure initialization before fetching row
count #49442 (#49476)
Cherry-picked from #49442
Co-authored-by: zy-kkk <[email protected]>
---
.../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 b3a76abcf5a..10cadfbf2ec 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: [email protected]
For additional commands, e-mail: [email protected]