ClickHouse/tests/queries/0_stateless/03114_analyzer_cte_with_join.sql
Nikita Mikhaylov f1921bcc1c Fix tests
2024-04-12 12:53:07 +00:00

16 lines
445 B
SQL

-- Tags: no-replicated-database
-- https://github.com/ClickHouse/ClickHouse/issues/58500
SET allow_experimental_analyzer=1;
drop table if exists t;
create table t (ID UInt8) Engine= Memory() ;
insert into t values(1),(2),(3);
with a as (select 1 as column_a) , b as (select 2 as column_b)
select * FROM remote('127.0.0.{1,2}', currentDatabase(), t) as c
inner join a on ID=column_a inner join b on ID=column_b;
drop table if exists t;