mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Merge pull request #51357 from ClickHouse/add-test-34626
Add a test for #34626
This commit is contained in:
commit
ea15825494
@ -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