File tree 1 file changed +2
-1
lines changed
core/src/main/java/com/dtstack/flink/sql/side
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 79
79
import static org .apache .calcite .sql .SqlKind .AS ;
80
80
import static org .apache .calcite .sql .SqlKind .INSERT ;
81
81
import static org .apache .calcite .sql .SqlKind .SELECT ;
82
+ import static org .apache .calcite .sql .SqlKind .UNION ;
82
83
import static org .apache .calcite .sql .SqlKind .WITH_ITEM ;
83
84
84
85
/**
@@ -160,7 +161,7 @@ public void exec(String sql,
160
161
Table table = FlinkSQLExec .sqlQuery (tableEnv , sqlWithItem .query , newRegisterTableList );
161
162
tableEnv .createTemporaryView (tableAlias , table );
162
163
163
- } else if (pollSqlNode .getKind () == SELECT ) {
164
+ } else if (pollSqlNode .getKind () == SELECT || pollSqlNode . getKind () == UNION ) {
164
165
Preconditions .checkState (createView != null , "select sql must included by create view" );
165
166
Collection <String > newRegisterTableList = dimTableNewTable .keySet ();
166
167
Table table = FlinkSQLExec .sqlQuery (tableEnv , pollSqlNode , newRegisterTableList );
You can’t perform that action at this time.
0 commit comments