mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
34 lines
747 B
SQL
34 lines
747 B
SQL
-- https://github.com/ClickHouse/ClickHouse/issues/47288
|
||
|
||
SET allow_experimental_analyzer=1;
|
||
|
||
select 1 as `c0`
|
||
from (
|
||
select C.`字段` AS `字段`
|
||
from (
|
||
select 2 as bb
|
||
) A
|
||
LEFT JOIN (
|
||
select '1' as `字段`
|
||
) C ON 1 = 1
|
||
LEFT JOIN (
|
||
select 1 as a
|
||
) D ON 1 = 1
|
||
) as `T0`
|
||
where `T0`.`字段` = '1';
|
||
|
||
select 1 as `c0`
|
||
from (
|
||
select C.`$` AS `$`
|
||
from (
|
||
select 2 as bb
|
||
) A
|
||
LEFT JOIN (
|
||
select '1' as `$`
|
||
) C ON 1 = 1
|
||
LEFT JOIN (
|
||
select 1 as a
|
||
) D ON 1 = 1
|
||
) as `T0`
|
||
where `T0`.`$` = '1';
|