ClickHouse/tests/queries/0_stateless/01951_distributed_push_down_limit.sql

8 lines
379 B
SQL

-- Tags: distributed
set prefer_localhost_replica = 1;
-- { echo }
explain description=0 select * from remote('127.{1,2}', view(select * from numbers(1e6))) order by number limit 10 settings distributed_push_down_limit=0;
explain description=0 select * from remote('127.{1,2}', view(select * from numbers(1e6))) order by number limit 10 settings distributed_push_down_limit=1;