-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test for parseError using WITH and UNION ALL operators (#593)
* Test for parseError using WITH and UNION ALL operators * Fix use statement in the test.
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
framework/resources/Functional/union_all/prq_union_all/prqUAllprq_36.e_tsv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
1 | ||
2 |
9 changes: 9 additions & 0 deletions
9
framework/resources/Functional/union_all/prq_union_all/prqUAllprq_36.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |