Merge pull request #51357 from ClickHouse/add-test-34626

Add a test for #34626
This commit is contained in:
Alexey Milovidov 2023-07-12 00:47:07 +03:00 committed by GitHub
commit ea15825494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;