mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
fix some tests
This commit is contained in:
parent
a765aef4db
commit
3c39f2fc69
@ -33,13 +33,17 @@ RemoteBlockOutputStream::RemoteBlockOutputStream(Connection & connection_, const
|
||||
if (!header)
|
||||
throw Exception("Logical error: empty block received as table structure", ErrorCodes::LOGICAL_ERROR);
|
||||
}
|
||||
else if (Protocol::Server::CapnProto == packet.type)
|
||||
{
|
||||
metadata = packet.block;
|
||||
}
|
||||
else if (Protocol::Server::Exception == packet.type)
|
||||
{
|
||||
packet.exception->rethrow();
|
||||
return;
|
||||
}
|
||||
else
|
||||
throw NetException("Unexpected packet from server (expected Data or Exception, got "
|
||||
throw NetException("Unexpected packet from server (expected Data, CapnProto or Exception, got "
|
||||
+ String(Protocol::Server::toString(packet.type)) + ")", ErrorCodes::UNEXPECTED_PACKET_FROM_SERVER);
|
||||
}
|
||||
|
||||
|
@ -35,6 +35,7 @@ private:
|
||||
String query;
|
||||
const Settings * settings;
|
||||
Block header;
|
||||
Block metadata;
|
||||
bool finished = false;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user