mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
test for #21413
This commit is contained in:
parent
8e6fa404c4
commit
102a0b2c5d
@ -0,0 +1 @@
|
|||||||
|
[('a',10)]
|
@ -0,0 +1,5 @@
|
|||||||
|
DROP TABLE IF EXISTS ttt01746;
|
||||||
|
CREATE TABLE ttt01746 (d Date, n UInt64) ENGINE = MergeTree() PARTITION BY toMonday(d) ORDER BY n;
|
||||||
|
INSERT INTO ttt01746 SELECT toDate('2021-02-14') + (number % 30) AS d, number AS n FROM numbers(100000);
|
||||||
|
SELECT arraySort(x -> x.2, [tuple('a', 10)]) AS X FROM ttt01746 WHERE d >= toDate('2021-03-03') - 2 ORDER BY n LIMIT 1;
|
||||||
|
DROP TABLE ttt01746;
|
Loading…
Reference in New Issue
Block a user