This is an automated email from the ASF dual-hosted git repository.
changchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git
The following commit(s) were added to refs/heads/main by this push:
new db05218c6d [GLUTEN-8749][CH] Explicitly cast input data type for
std::min (#8750)
db05218c6d is described below
commit db05218c6d11686b4d566fd7f09021f2e4fc7d4c
Author: Yan Xin <[email protected]>
AuthorDate: Mon Feb 17 17:30:30 2025 +0800
[GLUTEN-8749][CH] Explicitly cast input data type for std::min (#8750)
---
.../AggregateFunctions/AggregateFunctionUniqHyperLogLogPlusPlus.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/cpp-ch/local-engine/AggregateFunctions/AggregateFunctionUniqHyperLogLogPlusPlus.h
b/cpp-ch/local-engine/AggregateFunctions/AggregateFunctionUniqHyperLogLogPlusPlus.h
index d785164b12..c2db5124ba 100644
---
a/cpp-ch/local-engine/AggregateFunctions/AggregateFunctionUniqHyperLogLogPlusPlus.h
+++
b/cpp-ch/local-engine/AggregateFunctions/AggregateFunctionUniqHyperLogLogPlusPlus.h
@@ -216,7 +216,7 @@ private:
// Adjust bounds
size_t low = nearest_estimate_index + 1 > K ? nearest_estimate_index -
K + 1 : 0;
- size_t high = std::min(low + K, num_estimates);
+ size_t high = std::min(static_cast<size_t>(low + K), num_estimates);
while (high < num_estimates && distance(high) < distance(low))
{
++low;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]