kou commented on code in PR #47183:
URL: https://github.com/apache/arrow/pull/47183#discussion_r2233280819


##########
cpp/src/arrow/compare.cc:
##########
@@ -1532,11 +1533,14 @@ bool DoubleEquals(const double& left, const double& 
right, const EqualOptions& o
   return result;
 }
 
-bool ArrayStatisticsValueTypeEquals(
-    const std::optional<ArrayStatistics::ValueType>& left,
-    const std::optional<ArrayStatistics::ValueType>& right, const 
EqualOptions& options) {
+template <typename Type>
+bool ArrayStatisticsValueTypeEquals(const std::optional<Type>& left,

Review Comment:
   Ah, 
https://github.com/apache/arrow/blob/f9301c0ba8a7ed1b0b63275cfdd4c44c26b04675/cpp/src/arrow/compare.cc#L1567-L1568
 uses `std::optional<double>` not `std::optional<ValueTYpe>` by using 
`template`.
   
   How about `ArrayStatisticsOptionalEquals()` or 
`ArrayStatisticsOptionalValueEquals()`? I think that `optional` is an important 
information for this.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to