@@ -347,7 +347,11 @@ class TBaseAggregationState: public TComputationValue<TBaseAggregationState>
347
347
if (isNew) {
348
348
statePtr = static_cast <char *>(KeyStateBuffer) + StatesOffset;
349
349
} else {
350
+ #if defined(MKQL_RH_HASH_MOVE_API_TO_NEW_VERSION)
351
+ TUnboxedValuePod* mapKeyPtr = Map->GetKeyValue (mapIt);
352
+ #else
350
353
TUnboxedValuePod* mapKeyPtr = Map->GetKey (mapIt);
354
+ #endif // defined(MKQL_RH_HASH_MOVE_API_TO_NEW_VERSION)
351
355
statePtr = reinterpret_cast <char *>(mapKeyPtr) + StatesOffset;
352
356
}
353
357
@@ -495,7 +499,11 @@ class TBaseAggregationState: public TComputationValue<TBaseAggregationState>
495
499
if (!Map->IsValid (mapIter)) {
496
500
continue ;
497
501
}
502
+ #if defined(MKQL_RH_HASH_MOVE_API_TO_NEW_VERSION)
503
+ auto * entry = Map->GetKeyValue (mapIter);
504
+ #else
498
505
auto * entry = Map->GetKey (mapIter);
506
+ #endif // defined(MKQL_RH_HASH_MOVE_API_TO_NEW_VERSION)
499
507
auto entryMem = MemoryHelper.EstimateKeySize (entry);
500
508
if (!entryMem.has_value ()) {
501
509
unbounded = true ;
@@ -681,7 +689,11 @@ class TWideAggregationState: public TBaseAggregationState
681
689
return false ;
682
690
}
683
691
692
+ #if defined(MKQL_RH_HASH_MOVE_API_TO_NEW_VERSION)
693
+ const auto key = Map->GetKeyValue (DrainMapIterator);
694
+ #else
684
695
const auto key = Map->GetKey (DrainMapIterator);
696
+ #endif // defined(MKQL_RH_HASH_MOVE_API_TO_NEW_VERSION)
685
697
686
698
if (HasGenericAggregation) {
687
699
auto keyIter = key;
@@ -726,7 +738,11 @@ class TWideAggregationState: public TBaseAggregationState
726
738
if (!Map->IsValid (DrainMapIterator)) {
727
739
continue ;
728
740
}
741
+ #if defined(MKQL_RH_HASH_MOVE_API_TO_NEW_VERSION)
742
+ const auto key = Map->GetKeyValue (DrainMapIterator);
743
+ #else
729
744
const auto key = Map->GetKey (DrainMapIterator);
745
+ #endif // defined(MKQL_RH_HASH_MOVE_API_TO_NEW_VERSION)
730
746
char * statePtr = static_cast <char *>(static_cast <void *>(key)) + StatesOffset;
731
747
for (auto & agg : Aggs) {
732
748
agg->ForgetState (statePtr);
@@ -936,7 +952,11 @@ class TBlockAggregationState: public TBaseAggregationState
936
952
continue ;
937
953
}
938
954
955
+ #if defined(MKQL_RH_HASH_MOVE_API_TO_NEW_VERSION)
956
+ const auto key = Map->GetKeyValue (DrainMapIterator);
957
+ #else
939
958
const auto key = Map->GetKey (DrainMapIterator);
959
+ #endif // defined(MKQL_RH_HASH_MOVE_API_TO_NEW_VERSION)
940
960
if (HasGenericAggregation) {
941
961
auto keyIter = key;
942
962
for (ui32 i = 0U ; i < Nodes.FinishKeyNodes .size (); ++i) {
0 commit comments