mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Add a test for #44318
This commit is contained in:
parent
f243e013ca
commit
3541937950
@ -0,0 +1,14 @@
|
|||||||
|
CREATE TEMPORARY TABLE t_proj
|
||||||
|
(
|
||||||
|
`t` DateTime,
|
||||||
|
`id` UInt64,
|
||||||
|
PROJECTION p
|
||||||
|
(
|
||||||
|
SELECT
|
||||||
|
id,
|
||||||
|
t
|
||||||
|
ORDER BY toStartOfDay(t)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
ENGINE = MergeTree
|
||||||
|
ORDER BY id
|
@ -0,0 +1,2 @@
|
|||||||
|
CREATE TEMPORARY TABLE t_proj (t DateTime, id UInt64, PROJECTION p (SELECT id, t ORDER BY toStartOfDay(t))) ENGINE = MergeTree ORDER BY id;
|
||||||
|
SHOW CREATE TEMPORARY TABLE t_proj FORMAT TSVRaw;
|
Loading…
Reference in New Issue
Block a user