mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Fix LOGICAL_ERROR for max_distributed_connections=0
This commit is contained in:
parent
82b6f49516
commit
86069ffb40
@ -1658,7 +1658,7 @@ void InterpreterSelectQuery::executeFetchColumns(QueryProcessingStage::Enum proc
|
||||
{
|
||||
/// Table.
|
||||
if (max_streams == 0)
|
||||
throw Exception("Logical error: zero number of streams requested", ErrorCodes::LOGICAL_ERROR);
|
||||
max_streams = 1;
|
||||
|
||||
/// If necessary, we request more sources than the number of threads - to distribute the work evenly over the threads.
|
||||
if (max_streams > 1 && !is_remote)
|
||||
|
1
tests/queries/0_stateless/01831_max_streams.reference
Normal file
1
tests/queries/0_stateless/01831_max_streams.reference
Normal file
@ -0,0 +1 @@
|
||||
0
|
1
tests/queries/0_stateless/01831_max_streams.sql
Normal file
1
tests/queries/0_stateless/01831_max_streams.sql
Normal file
@ -0,0 +1 @@
|
||||
select * from remote('127.1', system.one) settings max_distributed_connections=0;
|
Loading…
Reference in New Issue
Block a user