ClickHouse/tests/queries/0_stateless/02469_fix_aliases_parser.sql
2024-05-31 09:53:53 +00:00

9 lines
477 B
SQL

SELECT sum(number number number) FROM numbers(10); -- { clientError SYNTAX_ERROR }
SELECT sum(number number) FROM numbers(10); -- { clientError SYNTAX_ERROR }
SELECT sum(number AS number) FROM numbers(10);
SELECT [number number number] FROM numbers(1); -- { clientError SYNTAX_ERROR }
SELECT [number number] FROM numbers(1); -- { clientError SYNTAX_ERROR }
SELECT [number AS number] FROM numbers(1);
SELECT cast('1234' lhs lhs, 'UInt32'), lhs; -- { clientError SYNTAX_ERROR }