mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Fixing a test.
This commit is contained in:
parent
f1c125ba89
commit
078e205154
@ -375,7 +375,10 @@ std::optional<Block> RemoteQueryExecutor::processPacket(Packet packet)
|
|||||||
got_duplicated_part_uuids = true;
|
got_duplicated_part_uuids = true;
|
||||||
break;
|
break;
|
||||||
case Protocol::Server::Data:
|
case Protocol::Server::Data:
|
||||||
if (packet.block)
|
/// Note: `packet.block.rows() > 0` means it's a header block.
|
||||||
|
/// We can actually return it, and the first call to RemoteQueryExecutor::read
|
||||||
|
/// will return earlier. We should consider doing it.
|
||||||
|
if (packet.block && (packet.block.rows() > 0))
|
||||||
return adaptBlockStructure(packet.block, header);
|
return adaptBlockStructure(packet.block, header);
|
||||||
break; /// If the block is empty - we will receive other packets before EndOfStream.
|
break; /// If the block is empty - we will receive other packets before EndOfStream.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user