mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
26 lines
1.1 KiB
SQL
26 lines
1.1 KiB
SQL
SELECT 0 IN 0;
|
|
SELECT 0 IN 1;
|
|
SELECT 0 IN (SELECT 0);
|
|
SELECT 0 IN (SELECT 1);
|
|
|
|
SELECT dummy IN (SELECT 0) FROM remote('127.0.0.1', system.one);
|
|
SELECT dummy IN (SELECT 1) FROM remote('127.0.0.1', system.one);
|
|
|
|
SELECT dummy IN (SELECT 0) FROM remote('127.0.0.{1,2}', system.one);
|
|
SELECT dummy IN (SELECT 1) FROM remote('127.0.0.{1,2}', system.one);
|
|
|
|
SELECT number IN (SELECT toUInt64(arrayJoin([1, 8]))) FROM remote('127.0.0.{1,2}', numbers(10));
|
|
|
|
SELECT arrayExists(x -> (x IN (SELECT 1)), [1]) FROM remote('127.0.0.{1,2}', system.one);
|
|
SELECT sumIf(number, arrayExists(x -> (x IN (SELECT 1)), [1])) FROM remote('127.0.0.{1,2}', numbers(10));
|
|
|
|
SET prefer_localhost_replica = 0;
|
|
|
|
SELECT dummy IN (SELECT 0) FROM remote('127.0.0.{1,2}', system.one);
|
|
SELECT dummy IN (SELECT 1) FROM remote('127.0.0.{1,2}', system.one);
|
|
|
|
SELECT number IN (SELECT toUInt64(arrayJoin([1, 8]))) FROM remote('127.0.0.{1,2}', numbers(10));
|
|
|
|
SELECT arrayExists(x -> (x IN (SELECT 1)), [1]) FROM remote('127.0.0.{1,2}', system.one);
|
|
SELECT sumIf(number, arrayExists(x -> (x IN (SELECT 1)), [1])) FROM remote('127.0.0.{1,2}', numbers(10));
|