Skip to content

Commit

Permalink
[Fix](RoutineLoad)multi-table Plan query table error
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs authored Sep 18, 2023
1 parent b9f1ac1 commit 5e56f40
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1963,7 +1963,9 @@ public TStreamLoadMultiTablePutResult streamLoadMultiTablePut(TStreamLoadPutRequ
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)) {
Expand Down

0 comments on commit 5e56f40

Please sign in to comment.