mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +00:00
15 lines
339 B
SQL
15 lines
339 B
SQL
-- https://github.com/ClickHouse/ClickHouse/issues/44365
|
|
SET allow_experimental_analyzer=1;
|
|
DROP TABLE IF EXISTS 03040_test;
|
|
|
|
CREATE TABLE 03040_test
|
|
(
|
|
id UInt64,
|
|
val String alias 'value: '||toString(id)
|
|
) ENGINE = MergeTree
|
|
ORDER BY tuple();
|
|
|
|
SELECT val FROM 03040_test t GROUP BY val;
|
|
|
|
DROP TABLE IF EXISTS 03040_test;
|