jpedroantunes commented on a change in pull request #9813:
URL: https://github.com/apache/arrow/pull/9813#discussion_r605130406
##########
File path: cpp/src/gandiva/filter.h
##########
@@ -45,6 +45,10 @@ class FilterCacheKey {
bool operator!=(const FilterCacheKey& other) const { return !(*this ==
other); }
+ bool operator<(const FilterCacheKey& other) const {
+ return uniqifier_ < other.uniqifier_;
Review comment:
We needed to implement it because actually, we use this Filter key in a
pair structure inside a set on the new Gandiva Cache.
We use this set to keep registers ordered by the elapsed build time.
This is why we need to implement this operator anyway, otherwise we can not
use it as I needed in logic.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]