ClickHouse/tests/queries/0_stateless/03114_analyzer_cte_with_join.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
445 B
MySQL
Raw Normal View History

2024-04-12 12:53:07 +00:00
-- Tags: no-replicated-database
-- https://github.com/ClickHouse/ClickHouse/issues/58500
2024-04-12 12:53:07 +00:00
SET allow_experimental_analyzer=1;
drop table if exists t;
create table t (ID UInt8) Engine= Memory() ;
insert into t values(1),(2),(3);
2024-04-12 12:53:07 +00:00
with a as (select 1 as column_a) , b as (select 2 as column_b)
2024-04-10 19:22:35 +00:00
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;
2024-04-12 12:53:07 +00:00
drop table if exists t;