ClickHouse/tests/queries/0_stateless/02997_projections_formatting.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
365 B
MySQL
Raw Normal View History

2024-02-20 11:26:51 +00:00
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;
2024-02-20 11:28:01 +00:00
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;