Skip to content

Commit

Permalink
Test for parseError using WITH and UNION ALL operators (#593)
Browse files Browse the repository at this point in the history
* Test for parseError using WITH and UNION ALL operators

* Fix use statement in the test.
  • Loading branch information
Atri0 authored and agirish committed Sep 3, 2019
1 parent ae106e9 commit e082dbd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1
2
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;

0 comments on commit e082dbd

Please sign in to comment.