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 420914abfc [Fix](RoutineLoad)multi-table query table error (#24538) 420914abfc is described below commit 420914abfc909656ff30b591faea4b8e38bf13ac Author: Calvin Kirs <acm_ch...@yeah.net> AuthorDate: Tue Sep 19 22:57:13 2023 +0800 [Fix](RoutineLoad)multi-table query table error (#24538) multi-table will take all tables and then convert them into OlapTable, thus causing View type conversion errors. --- .../src/main/java/org/apache/doris/service/FrontendServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java b/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java index 2a6596aa9b..b0796a372d 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java +++ b/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java @@ -1963,7 +1963,9 @@ public class FrontendServiceImpl implements FrontendService.Iface { throw new MetaNotFoundException("table not found"); } olapTables = new ArrayList<>(tableNames.size()); - Map<String, OlapTable> olapTableMap = tables.stream().map(OlapTable.class::cast) + Map<String, OlapTable> olapTableMap = tables.stream() + .filter(OlapTable.class::isInstance) + .map(OlapTable.class::cast) .collect(Collectors.toMap(OlapTable::getName, olapTable -> olapTable)); for (String tableName : tableNames) { if (null == olapTableMap.get(tableName)) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org