Merge pull request #56899 from den-crane/test/56790

test for #56790
This commit is contained in:
Alexey Milovidov 2023-11-19 16:52:18 +01:00 committed by GitHub
commit 62d0d76f68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,7 @@
20
20
20
20
20
20
20

View File

@ -0,0 +1,25 @@
-- Tags: shard
-- test for #56790
DROP TABLE IF EXISTS test_local;
CREATE TABLE test_local (x Int64) ENGINE = MergeTree order by x as select * from numbers(10);
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');
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));
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');
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));
DROP TABLE test_local;