ClickHouse/tests/queries/0_stateless/03040_alias_column_join.sql

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

15 lines
327 B
MySQL
Raw Normal View History

-- https://github.com/ClickHouse/ClickHouse/issues/44365
2024-07-12 12:49:26 +00:00
SET enable_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;