Skip to content

Commit 7376cbe

Browse files
committed
Split WideCombiners state into buckets earlier (ydb-platform#8804)
1 parent 0ab8d25 commit 7376cbe

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

ydb/library/yql/minikql/aligned_page_pool.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ class TAlignedPagePoolImpl {
218218
IsMaximumLimitValueReached = isReached;
219219
}
220220

221+
bool GetMaximumLimitValueReached() const noexcept {
222+
return IsMaximumLimitValueReached;
223+
}
224+
221225
bool IsMemoryYellowZoneEnabled() const noexcept {
222226
return IsMemoryYellowZoneReached;
223227
}

ydb/library/yql/minikql/comp_nodes/mkql_wide_combine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ class TSpillingSupportState : public TComputationValue<TSpillingSupportState> {
710710
}
711711

712712
bool IsSwitchToSpillingModeCondition() const {
713-
return !HasMemoryForProcessing();
713+
return !HasMemoryForProcessing() || TlsAllocState->GetMaximumLimitValueReached();
714714
}
715715

716716
public:

0 commit comments

Comments
 (0)