mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
MongoDBDictionarySource: preparation [#METR-2944].
This commit is contained in:
parent
442ff1d3b8
commit
47b75e6c1e
@ -147,7 +147,7 @@ Block MongoDBBlockInputStream::readImpl()
|
||||
Poco::MongoDB::ResponseMessage & response = cursor->next(*connection);
|
||||
|
||||
if (response.cursorID() == 0)
|
||||
return {};
|
||||
break;
|
||||
|
||||
for (const auto & document : response.documents())
|
||||
{
|
||||
@ -166,6 +166,9 @@ Block MongoDBBlockInputStream::readImpl()
|
||||
}
|
||||
}
|
||||
|
||||
if (num_rows == 0)
|
||||
return {};
|
||||
|
||||
return block;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user