mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
Added test for LowCardinality order by.
This commit is contained in:
parent
65e5494326
commit
8085ce442c
@ -0,0 +1,24 @@
|
||||
0 z
|
||||
1 w
|
||||
3 y
|
||||
4 w
|
||||
6 y
|
||||
8 z
|
||||
10 x
|
||||
11 x
|
||||
12 a
|
||||
13 b
|
||||
14 c
|
||||
15 d
|
||||
16 e
|
||||
17 f
|
||||
18 g
|
||||
19 h
|
||||
w
|
||||
w
|
||||
x
|
||||
x
|
||||
y
|
||||
y
|
||||
z
|
||||
z
|
@ -0,0 +1,8 @@
|
||||
set allow_experimental_low_cardinality_type = 1;
|
||||
drop table if exists test.lc_perm;
|
||||
create table test.lc_perm (val UInt32, str LowCardinality(String)) engine = MergeTree order by val;
|
||||
insert into test.lc_perm values (1, 'w'), (10, 'x'), (3, 'y'), (8, 'z'), (4, 'w'), (6, 'y'), (11, 'x'), (0, 'z'), (12, 'a'), (13, 'b'), (14, 'c'), (15, 'd'), (16, 'e'), (17, 'f'), (18, 'g'), (19, 'h');
|
||||
select * from test.lc_perm;
|
||||
select str from test.lc_perm where val < 12 order by str;
|
||||
drop table if exists test.lc_perm;
|
||||
|
Loading…
Reference in New Issue
Block a user