Skip to content

Commit

Permalink
YQL-18016 send empty results as well (ydb-platform#3738)
Browse files Browse the repository at this point in the history
  • Loading branch information
zverevgeny authored Apr 15, 2024
1 parent c59b832 commit 654d7eb
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,9 @@ namespace NYql::NDq {
}

void FinalizeRequest() {
if (!LookupResult.empty()) {
YQL_CLOG(INFO, ProviderGeneric) << "Sending lookup results with " << LookupResult.size() << " rows";
auto ev = new IDqAsyncLookupSource::TEvLookupResult(Alloc, std::move(LookupResult));
TActivationContext::ActorSystem()->Send(new NActors::IEventHandle(ParentId, SelfId(), ev));
}
YQL_CLOG(INFO, ProviderGeneric) << "Sending lookup results with " << LookupResult.size() << " rows";
auto ev = new IDqAsyncLookupSource::TEvLookupResult(Alloc, std::move(LookupResult));
TActivationContext::ActorSystem()->Send(new NActors::IEventHandle(ParentId, SelfId(), ev));
LookupResult = {};
ReadSplitsIterator = {};
InProgress = false;
Expand Down

0 comments on commit 654d7eb

Please sign in to comment.