ClickHouse/tests/queries/0_stateless/03110_unicode_alias.sql

34 lines
747 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 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';