mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Add a test for #34626
This commit is contained in:
parent
50f0cd48c6
commit
6fce596411
@ -0,0 +1,2 @@
|
||||
1 1
|
||||
2 0.5
|
10
tests/queries/0_stateless/02808_aliases_inside_case.sql
Normal file
10
tests/queries/0_stateless/02808_aliases_inside_case.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user