mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Merge pull request #23379 from ClickHouse/add-test-1647
Add test for #1647
This commit is contained in:
commit
20b1930ee2
@ -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