Added a test from Anton Popov

This commit is contained in:
Alexey Milovidov 2020-02-25 17:01:28 +03:00
parent 88f0be8933
commit 757be55238
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,4 @@
1 1
1 2
1 3
1 4

View File

@ -0,0 +1,5 @@
DROP TABLE IF EXISTS t;
create table t (i Int, a Int, s String, index ind_s (s) type set(1) granularity 1) engine = MergeTree order by i;
insert into t values (1, 1, 'a') (2, 1, 'a') (3, 1, 'a') (4, 1, 'a');
SELECT a, i from t ORDER BY a, i;
DROP TABLE t;