Add a test for #34626

This commit is contained in:
Alexey Milovidov 2023-06-24 08:08:16 +02:00
parent 50f0cd48c6
commit 6fce596411
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,2 @@
1 1
2 0.5

View File

@ -0,0 +1,10 @@
# We support specifying aliases in any place in the query, including CASE expression:
with arrayJoin([1,2]) as arg
select arg,
(case
when arg = 1
then 1 as one
when arg = 2
then one / 2
end) as imposible;