This is an automated email from the ASF dual-hosted git repository.
Gabriel39 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 2a2856189cc [fix](fe) Skip broken external tables in show tables
(#63407)
2a2856189cc is described below
commit 2a2856189cc56291c7ffa901d2d6443df80c6a5e
Author: Socrates <[email protected]>
AuthorDate: Wed May 20 10:20:40 2026 +0800
[fix](fe) Skip broken external tables in show tables (#63407)
SHOW TABLES on external catalogs can fail for the whole database when a
single table throws during metadata initialization or schema parsing.
This change skips the broken table in the SHOW TABLES path so other
tables remain visible.
---
.../java/org/apache/doris/datasource/ExternalDatabase.java | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalDatabase.java
b/fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalDatabase.java
index b716ce5366b..c688ccea89a 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalDatabase.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalDatabase.java
@@ -438,9 +438,14 @@ public abstract class ExternalDatabase<T extends
ExternalTable>
List<T> tables = Lists.newArrayList();
Set<String> tblNames = getTableNamesWithLock();
for (String tblName : tblNames) {
- T tbl = getTableNullable(tblName);
- if (tbl != null) {
- tables.add(tbl);
+ try {
+ T tbl = getTableNullable(tblName);
+ if (tbl != null) {
+ tables.add(tbl);
+ }
+ } catch (Exception e) {
+ LOG.warn("Failed to get external table {}.{}.{} in SHOW TABLES
path, skip it.",
+ extCatalog.getName(), name, tblName, e);
}
}
return tables;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]