mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Add test for #1647
This commit is contained in:
parent
3b9e6dd978
commit
c7e20282f5
@ -0,0 +1,2 @@
|
||||
2017-12-15 1 1
|
||||
2017-12-15 1 1
|
@ -0,0 +1,21 @@
|
||||
DROP TABLE IF EXISTS db;
|
||||
|
||||
CREATE TABLE tb
|
||||
(
|
||||
date Date,
|
||||
`index` Int32,
|
||||
value Int32,
|
||||
idx Int32 ALIAS `index`
|
||||
)
|
||||
ENGINE = MergeTree
|
||||
PARTITION BY date
|
||||
ORDER BY (date, `index`);
|
||||
|
||||
insert into tb values ('2017-12-15', 1, 1);
|
||||
|
||||
SET force_primary_key = 1;
|
||||
|
||||
select * from tb where `index` >= 0 AND `index` <= 2;
|
||||
select * from tb where idx >= 0 AND idx <= 2;
|
||||
|
||||
DROP TABLE tb;
|
Loading…
Reference in New Issue
Block a user