Skip to content

Commit

Permalink
clear states only in outofmemory case
Browse files Browse the repository at this point in the history
  • Loading branch information
lll-phill-lll committed Jan 23, 2025
1 parent d2b0f91 commit 573c965
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions yql/essentials/minikql/comp_nodes/mkql_wide_combine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,17 @@ class TState : public TComputationValue<TState> {

}

if (IsOutOfMemory) {
States = std::make_unique<TStates>(Hash, Equal, CountRowsOnPage);
}

CurrentPage = &Storage.emplace_back(RowSize() * CountRowsOnPage, NUdf::TUnboxedValuePod());
CurrentPosition = 0;
Tongue = CurrentPage->data();
StoredDataSize = 0;
IsOutOfMemory = false;
Rows = 0;


States = std::make_unique<TStates>(Hash, Equal, CountRowsOnPage);
CleanupCurrentContext();
return true;
}
Expand Down

0 comments on commit 573c965

Please sign in to comment.