Skip to content

Commit 16d7818

Browse files
author
gituser
committed
Merge branch 'hotfix_1.10_4.0.x_32715' into 1.10_release_4.0.x
2 parents fcf7609 + f1f0b23 commit 16d7818

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

core/src/main/java/com/dtstack/flink/sql/side/SideSqlExec.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
import java.util.Optional;
7777
import java.util.Queue;
7878
import java.util.Set;
79+
import java.util.concurrent.atomic.AtomicBoolean;
7980

8081
import static org.apache.calcite.sql.SqlKind.AS;
8182
import static org.apache.calcite.sql.SqlKind.INSERT;
@@ -562,7 +563,13 @@ private void joinFun(Object pollObj,
562563
EnvironmentSettings.DEFAULT_BUILTIN_CATALOG,
563564
EnvironmentSettings.DEFAULT_BUILTIN_DATABASE,
564565
targetTableName);
565-
boolean tableExists = tableEnv.getCatalog(EnvironmentSettings.DEFAULT_BUILTIN_CATALOG).get().tableExists(objectIdentifier.toObjectPath());
566+
boolean tableExists = false;
567+
for (String table : tableEnv.listTables()) {
568+
if (table.equals(targetTableName)) {
569+
tableExists = true;
570+
break;
571+
}
572+
}
566573

567574
if (!tableExists) {
568575
Table joinTable = tableEnv.fromDataStream(dsOut);

0 commit comments

Comments
 (0)