mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Add a test for #44318
This commit is contained in:
parent
3541937950
commit
9036a69747
@ -12,3 +12,15 @@ CREATE TEMPORARY TABLE t_proj
|
|||||||
)
|
)
|
||||||
ENGINE = MergeTree
|
ENGINE = MergeTree
|
||||||
ORDER BY id
|
ORDER BY id
|
||||||
|
CREATE TEMPORARY TABLE t_proj2
|
||||||
|
(
|
||||||
|
`a` UInt32,
|
||||||
|
`b` UInt32,
|
||||||
|
PROJECTION p
|
||||||
|
(
|
||||||
|
SELECT a
|
||||||
|
ORDER BY b * 2
|
||||||
|
)
|
||||||
|
)
|
||||||
|
ENGINE = MergeTree
|
||||||
|
ORDER BY a
|
||||||
|
@ -1,2 +1,5 @@
|
|||||||
CREATE TEMPORARY TABLE t_proj (t DateTime, id UInt64, PROJECTION p (SELECT id, t ORDER BY toStartOfDay(t))) ENGINE = MergeTree ORDER BY id;
|
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;
|
SHOW CREATE TEMPORARY TABLE t_proj FORMAT TSVRaw;
|
||||||
|
|
||||||
|
CREATE TEMPORARY TABLE t_proj2 (a UInt32, b UInt32, PROJECTION p (SELECT a ORDER BY b * 2)) ENGINE = MergeTree ORDER BY a;
|
||||||
|
SHOW CREATE TEMPORARY TABLE t_proj2 FORMAT TSVRaw;
|
||||||
|
Loading…
Reference in New Issue
Block a user