Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for crash from #5859 #6362

Merged
merged 1 commit into from
Aug 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
1 2019-01-01 a
1 2019-01-01 \N
1 2019-01-01 \N
2 2019-01-01 b
3 2019-01-01 c
15 changes: 15 additions & 0 deletions dbms/tests/queries/0_stateless/00980_full_join_crash_fancyqlx.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
drop table if exists test_join;

create table test_join (date Date, id Int32, name Nullable(String)) engine = MergeTree partition by date order by id;

insert into test_join values ('2019-01-01', 1, 'a');
insert into test_join values ('2019-01-01', 2, 'b');
insert into test_join values ('2019-01-01', 3, 'c');
insert into test_join values ('2019-01-01', 1, null);

SELECT id, date, name FROM (SELECT id, date, name FROM test_join GROUP BY id, name, date)
FULL OUTER JOIN (SELECT id, date, name FROM test_join GROUP BY id, name, date)
USING (id, name, date)
ORDER BY id, name;

drop table test_join;