mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fix 01455_shard_leaf_max_rows_bytes_to_read (set prefer_localhost_replica=0)
This commit is contained in:
parent
6d786f9734
commit
41329a59e8
@ -1,3 +1,10 @@
|
||||
-- Leaf limits is unreliable w/ prefer_localhost_replica=1.
|
||||
-- Since in this case initial query and the query on the local node (to the
|
||||
-- underlying table) has the same counters, so if query on the remote node
|
||||
-- will be finished before local, then local node will already have some rows
|
||||
-- read, and leaf limit will fail.
|
||||
SET prefer_localhost_replica=0;
|
||||
|
||||
SELECT count() FROM (SELECT * FROM remote('127.0.0.1', system.numbers) LIMIT 100) SETTINGS max_rows_to_read_leaf=1; -- { serverError 158 }
|
||||
SELECT count() FROM (SELECT * FROM remote('127.0.0.1', system.numbers) LIMIT 100) SETTINGS max_bytes_to_read_leaf=1; -- { serverError 307 }
|
||||
SELECT count() FROM (SELECT * FROM remote('127.0.0.1', system.numbers) LIMIT 100) SETTINGS max_rows_to_read_leaf=100;
|
||||
|
Loading…
Reference in New Issue
Block a user