Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Zhuhe Fang <[email protected]>
  • Loading branch information
fzhedu committed Jul 10, 2023
1 parent 98cc0d6 commit 1ceab0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
8 changes: 4 additions & 4 deletions test/sql/test_join/R/test_join_struct
Original file line number Diff line number Diff line change
Expand Up @@ -254,33 +254,33 @@ select s0 in (select s0 from struct_test s) from struct_test;
-- result:
1
1
None
1
1
None
-- !result
select s0 in (select s1 from struct_test s) from struct_test;
-- result:
1
None
1
1
None
None
-- !result
select s5 in (select s5 from struct_test s) from struct_test;
-- result:
None
1
1
None
1
1
-- !result
select s0 not in (select s0 from struct_test s) from struct_test;
-- result:
0
None
0
0
0
None
-- !result
select s0 not in (select s2 from struct_test s) from struct_test;
-- result:
Expand Down
6 changes: 0 additions & 6 deletions test/sql/test_join/T/test_join_struct
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ insert into struct_test values (2, row(null,null),row(null,null),row(null,null),
insert into struct_test values (3, row(3,''),row(3,''),row(3,['3',null, null,null]),row('3',map(3,'a33c',null,null)),row(null,json_object('name','abc','age',23)),row(null, row(3,'a')));
insert into struct_test values (4, null,null,null,null,null,null);


select t.s0, s.s0 from struct_test t join struct_test s on s.s0 = t.s0 order by t.pk;
select t.s1, s.s1 from struct_test t join struct_test s on s.s1 = t.s1 order by t.pk;
select t.s2, s.s2 from struct_test t join struct_test s on s.s2 = t.s2 order by t.pk;
Expand All @@ -32,10 +31,8 @@ select t.s0, s.s0 from struct_test t join struct_test s where s.s0 = t.s0 order
select t.s1, s.s1 from struct_test t join struct_test s where s.s1 = t.s1 order by t.pk;
select t.s2, s.s2 from struct_test t join struct_test s where s.s2 = t.s2 order by t.pk;
select t.s3, s.s3 from struct_test t join struct_test s where s.s3 = t.s3 order by t.pk;
-- select t.s4, s.s4 from struct_test t join struct_test s where s.s4 = t.s4 order by t.pk;
select t.s2, s.s3 from struct_test t join struct_test s where s.s2 = t.s3 order by t.pk;


select t.s0, s.s0 from struct_test t join struct_test s on s.s0 <=> t.s0 order by t.pk;
select t.s1, s.s1 from struct_test t join struct_test s on s.s1 <=> t.s1 order by t.pk;
select t.s5, s.s5 from struct_test t join struct_test s on s.s5 <=> t.s5 order by t.pk;
Expand All @@ -50,7 +47,6 @@ select t.s4, s.s4 from struct_test t join struct_test s where s.s4 > t.s4 order
select t.s0, s.s0 from struct_test t join struct_test s on s.s0 >= t.s0 order by t.pk;
select t.s4, s.s5 from struct_test t join struct_test s where s.s4 >= t.s5 order by t.pk;


select s0 from struct_test t where exists (select 1 from struct_test s where t.s0 = s.s5);
select s1 from struct_test t where exists (select 1 from struct_test s where t.s1 = s.s5);
select s2 from struct_test t where exists (select 1 from struct_test s where t.s2 = s.s5);
Expand All @@ -59,7 +55,6 @@ select s3 from struct_test t where exists (select 1 from struct_test s where t.s
select s4 from struct_test t where exists (select 1 from struct_test s where t.s4 <=> s.s2);
select s5 from struct_test t where exists (select 1 from struct_test s where t.s5 <=> s.s2);


select s0 from struct_test t where exists (select 1 from struct_test s where t.s0 < s.s1);
select s1 from struct_test t where exists (select 1 from struct_test s where t.s1 < s.s1);
select s2 from struct_test t where exists (select 1 from struct_test s where t.s2 < s.s1);
Expand All @@ -81,7 +76,6 @@ select s0 not in (select s0 from struct_test s) from struct_test;
select s0 not in (select s2 from struct_test s) from struct_test;
select s0 not in (select s5 from struct_test s) from struct_test;


select t.s4, s.s5 from struct_test t left join struct_test s where s.s4 <=> t.s5 order by t.pk;
select t.s0, s.s0 from struct_test t left join struct_test s on s.s0 = t.s0 order by t.pk;
select t.s1, s.s2 from struct_test t left join struct_test s on s.s1 = t.s2 order by t.pk;
Expand Down

0 comments on commit 1ceab0a

Please sign in to comment.