Skip to content

Commit 6386fb4

Browse files
author
gituser
committed
Merge branch '1.10_release_4.0.x' into 1.10_release_4.1.x
2 parents 89b25a9 + f4aebe7 commit 6386fb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
import static org.apache.calcite.sql.SqlKind.AS;
8080
import static org.apache.calcite.sql.SqlKind.INSERT;
8181
import static org.apache.calcite.sql.SqlKind.SELECT;
82+
import static org.apache.calcite.sql.SqlKind.UNION;
8283
import static org.apache.calcite.sql.SqlKind.WITH_ITEM;
8384

8485
/**
@@ -160,7 +161,7 @@ public void exec(String sql,
160161
Table table = FlinkSQLExec.sqlQuery(tableEnv, sqlWithItem.query, newRegisterTableList);
161162
tableEnv.createTemporaryView(tableAlias, table);
162163

163-
} else if (pollSqlNode.getKind() == SELECT) {
164+
} else if (pollSqlNode.getKind() == SELECT || pollSqlNode.getKind() == UNION) {
164165
Preconditions.checkState(createView != null, "select sql must included by create view");
165166
Collection<String> newRegisterTableList = dimTableNewTable.keySet();
166167
Table table = FlinkSQLExec.sqlQuery(tableEnv, pollSqlNode, newRegisterTableList);

0 commit comments

Comments
 (0)