Add a test for #44318

This commit is contained in:
Alexey Milovidov 2024-02-20 12:26:51 +01:00
parent f243e013ca
commit 3541937950
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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;