Skip to content

Commit 1fa4836

Browse files
authored
another build fix for Darwin (#16758)
1 parent 523465f commit 1fa4836

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ydb/core/kqp/tools/combiner_perf/simple_block.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ namespace NKikimr {
2323
namespace NMiniKQL {
2424

2525
template<typename K>
26-
void UpdateMapFromBlocks(const NUdf::TUnboxedValue& key, const NUdf::TUnboxedValue& value, std::unordered_map<K, uint64_t>& result);
26+
void UpdateMapFromBlocks(const NUdf::TUnboxedValue& key, const NUdf::TUnboxedValue& value, std::unordered_map<K, ui64>& result);
2727

2828
template<>
29-
void UpdateMapFromBlocks(const NUdf::TUnboxedValue& key, const NUdf::TUnboxedValue& value, std::unordered_map<uint64_t, uint64_t>& result)
29+
void UpdateMapFromBlocks(const NUdf::TUnboxedValue& key, const NUdf::TUnboxedValue& value, std::unordered_map<ui64, ui64>& result)
3030
{
3131
auto datumKey = TArrowBlock::From(key).GetDatum();
3232
auto datumValue = TArrowBlock::From(value).GetDatum();
@@ -46,7 +46,7 @@ void UpdateMapFromBlocks(const NUdf::TUnboxedValue& key, const NUdf::TUnboxedVal
4646
}
4747

4848
template<>
49-
void UpdateMapFromBlocks(const NUdf::TUnboxedValue& key, const NUdf::TUnboxedValue& value, std::unordered_map<std::string, uint64_t>& result)
49+
void UpdateMapFromBlocks(const NUdf::TUnboxedValue& key, const NUdf::TUnboxedValue& value, std::unordered_map<std::string, ui64>& result)
5050
{
5151
auto datumKey = TArrowBlock::From(key).GetDatum();
5252
auto datumValue = TArrowBlock::From(value).GetDatum();
@@ -125,7 +125,7 @@ void RunTestBlockCombineHashedSimple(const TRunParams& params, TTestResultCollec
125125
const auto graph = setup.BuildGraph(pgmReturn, {streamCallable});
126126

127127
auto streamMaker = [&]() -> auto {
128-
return std::unique_ptr<TBlockKVStream<std::string, uint64_t>>(new TBlockKVStream<std::string, uint64_t>(
128+
return std::unique_ptr<TBlockKVStream<std::string, ui64>>(new TBlockKVStream<std::string, ui64>(
129129
graph->GetContext(),
130130
samples,
131131
params.NumRuns,
@@ -135,7 +135,7 @@ void RunTestBlockCombineHashedSimple(const TRunParams& params, TTestResultCollec
135135
};
136136

137137
// Compute results directly from raw samples to test the input stream implementation
138-
std::unordered_map<std::string, uint64_t> rawResult;
138+
std::unordered_map<std::string, ui64> rawResult;
139139
for (const auto& tuple : samples) {
140140
rawResult[tuple.first] += (tuple.second * params.NumRuns);
141141
}
@@ -151,7 +151,7 @@ void RunTestBlockCombineHashedSimple(const TRunParams& params, TTestResultCollec
151151
const auto devnullTime = TInstant::Now() - devnullStart;
152152

153153
// Reference implementation (sum via an std::unordered_map)
154-
std::unordered_map<std::string, uint64_t> refResult;
154+
std::unordered_map<std::string, ui64> refResult;
155155
const auto refStream = streamMaker();
156156
const auto cppStart = TInstant::Now();
157157
CalcRefResult(refStream, refResult);
@@ -176,7 +176,7 @@ void RunTestBlockCombineHashedSimple(const TRunParams& params, TTestResultCollec
176176
Cerr << "Result block count: " << numResultItems << Endl;
177177

178178
// Verification
179-
std::unordered_map<std::string, uint64_t> graphResult;
179+
std::unordered_map<std::string, ui64> graphResult;
180180

181181
const auto ptr = resultList.GetElements();
182182
for (size_t i = 0ULL; i < numResultItems; ++i) {
@@ -206,4 +206,4 @@ template void RunTestBlockCombineHashedSimple<true, true>(const TRunParams& para
206206

207207

208208
}
209-
}
209+
}

0 commit comments

Comments
 (0)