diff --git a/framework/resources/Functional/union_all/prq_union_all/prqUAllprq_36.e_tsv b/framework/resources/Functional/union_all/prq_union_all/prqUAllprq_36.e_tsv new file mode 100644 index 000000000..1191247b6 --- /dev/null +++ b/framework/resources/Functional/union_all/prq_union_all/prqUAllprq_36.e_tsv @@ -0,0 +1,2 @@ +1 +2 diff --git a/framework/resources/Functional/union_all/prq_union_all/prqUAllprq_36.sql b/framework/resources/Functional/union_all/prq_union_all/prqUAllprq_36.sql new file mode 100644 index 000000000..89d62880c --- /dev/null +++ b/framework/resources/Functional/union_all/prq_union_all/prqUAllprq_36.sql @@ -0,0 +1,9 @@ +drop table if exists dfs.union_all.`MyTbl_1`; +drop table if exists dfs.union_all.`MyTbl_2`; +drop view if exists dfs.union_all.`MyView1`; +create table dfs.union_all.MyTbl_1 as (select 1 as Col); +create table dfs.union_all.MyTbl_2 as (select 2 as Col); +use dfs.union_all; +create or replace view dfs.union_all.MyView1 as with `tbl_un` as (select Col from MyTbl_1 union all select Col from MyTbl_2) select * from `tbl_un`; +--@test +select * from dfs.union_all.MyView1;