2023-11-17 07:24:47 +00:00
|
|
|
-- Tags: shard
|
|
|
|
|
|
|
|
-- test for #56790
|
|
|
|
|
2023-11-17 08:19:22 +00:00
|
|
|
DROP TABLE IF EXISTS test_local;
|
|
|
|
|
|
|
|
CREATE TABLE test_local (x Int64) ENGINE = MergeTree order by x as select * from numbers(10);
|
2023-11-17 07:24:47 +00:00
|
|
|
|
|
|
|
select count() from remote('127.0.0.1,127.0.0.2', currentDatabase(), test_local);
|
|
|
|
|
|
|
|
select count() from remote('127.0.0.1,127.0.0.2', currentDatabase(), test_local) where 'XXX' global in (select 'XXX');
|
|
|
|
|
2023-11-17 08:19:22 +00:00
|
|
|
select count() from remote('127.0.0.1,127.0.0.2', currentDatabase(), test_local) where * global in (select * from numbers(10));
|
2023-11-17 07:24:47 +00:00
|
|
|
|
2023-11-17 08:19:22 +00:00
|
|
|
select count() from remote('127.0.0.1,127.0.0.2', currentDatabase(), test_local) where * in (select * from numbers(10));
|
2023-11-17 07:24:47 +00:00
|
|
|
|
|
|
|
set prefer_localhost_replica=0;
|
|
|
|
|
|
|
|
select count() from remote('127.0.0.1,127.0.0.2', currentDatabase(), test_local) where 'XXX' global in (select 'XXX');
|
|
|
|
|
2023-11-17 08:19:22 +00:00
|
|
|
select count() from remote('127.0.0.1,127.0.0.2', currentDatabase(), test_local) where * global in (select * from numbers(10));
|
|
|
|
|
|
|
|
select count() from remote('127.0.0.1,127.0.0.2', currentDatabase(), test_local) where * in (select * from numbers(10));
|
2023-11-17 07:24:47 +00:00
|
|
|
|
2023-11-17 08:19:22 +00:00
|
|
|
DROP TABLE test_local;
|