andishgar commented on code in PR #47183: URL: https://github.com/apache/arrow/pull/47183#discussion_r2230397960
########## 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: using variant may not be appropiate since std::optional<double> type is used this function too. -- 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