wesm commented on a change in pull request #8311:
URL: https://github.com/apache/arrow/pull/8311#discussion_r509816304
##########
File path: cpp/src/arrow/dataset/filter.cc
##########
@@ -1255,14 +1255,42 @@ struct TreeEvaluator::Impl {
}
Result<Datum> operator()(const ComparisonExpression& expr) const {
- ARROW_ASSIGN_OR_RAISE(auto lhs, Evaluate(*expr.left_operand()));
- ARROW_ASSIGN_OR_RAISE(auto rhs, Evaluate(*expr.right_operand()));
+ ARROW_ASSIGN_OR_RAISE(Datum lhs, Evaluate(*expr.left_operand()));
+ ARROW_ASSIGN_OR_RAISE(Datum rhs, Evaluate(*expr.right_operand()));
if (IsNullDatum(lhs) || IsNullDatum(rhs)) {
return Datum(std::make_shared<BooleanScalar>());
}
- DCHECK(lhs.is_array());
+ if (lhs.type()->id() == Type::DICTIONARY && rhs.type()->id() ==
Type::DICTIONARY) {
Review comment:
Yes, this sounds fine, can you open a JIRA issue about it?
----------------------------------------------------------------
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]