Added test for trailing commas in select

This commit is contained in:
Aleksandr Musorin 2024-04-12 18:07:46 +02:00
parent 6fa57b9d7d
commit f2dddbd9de
2 changed files with 4 additions and 0 deletions

View File

@ -6,3 +6,5 @@
(1,'foo')
(1,'foo')
(1,(2,'foo'))
0 0
0 0

View File

@ -7,3 +7,5 @@ SELECT (1, 'foo')::Tuple(a Int, b String,);
SELECT (1, 'foo')::Tuple(a Int, b String,,); -- { clientError SYNTAX_ERROR }
SELECT (1, 'foo')::Tuple(Int, String,);
SELECT (1, (2,'foo'))::Tuple(Int, Tuple(Int, String,),);
SELECT number as a, sum(number) FROM numbers(1) GROUP BY number;
SELECT number, sum(number) as s, FROM numbers(1) GROUP BY number;