ClickHouse/tests/queries/0_stateless/02521_analyzer_aggregation_without_column.sql
2023-01-10 16:49:55 +01:00

16 lines
284 B
SQL

SET allow_experimental_analyzer = 1;
DROP TABLE IF EXISTS test_table;
CREATE TABLE test_table
(
c0 String ALIAS c1,
c1 String,
c2 String,
) ENGINE = MergeTree ORDER BY c1;
INSERT INTO test_table VALUES ('a', 'b');
SELECT MAX(1) FROM test_table;
DROP TABLE test_table;