ClickHouse/dbms/tests/queries/0_stateless/00295_global_in_one_shard_rows_before_limit.sql
2017-01-13 18:43:43 +00:00

4 lines
424 B
SQL

SET output_format_write_statistics = 0;
SELECT arrayJoin(range(100)) AS x FROM remote('localhost', system.one) WHERE x GLOBAL IN (SELECT toUInt8(arrayJoin(range(100)) + 50)) GROUP BY x ORDER BY x LIMIT 10 FORMAT JSONCompact;
SELECT arrayJoin(range(100)) AS x FROM remote('localhost,127.0.0.{1,2}', system.one) WHERE x GLOBAL IN (SELECT toUInt8(arrayJoin(range(100)) + 50)) GROUP BY x ORDER BY x LIMIT 10 FORMAT JSONCompact;