File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
core/src/main/java/com/dtstack/flink/sql/side Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 7979import static org .apache .calcite .sql .SqlKind .AS ;
8080import static org .apache .calcite .sql .SqlKind .INSERT ;
8181import static org .apache .calcite .sql .SqlKind .SELECT ;
82+ import static org .apache .calcite .sql .SqlKind .UNION ;
8283import 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 );
You can’t perform that action at this time.
0 commit comments