Omkar-Wagholikar commented on code in PR #27544:
URL: https://github.com/apache/datafusion/pull/27544#discussion_r4669646381
##########
datafusion/optimizer/src/decorrelate_predicate_subquery.rs:
##########
@@ -1326,7 +1324,9 @@ fn build_join_with_count_bug(
let indicator_col = Expr::Column(Column::new(Some(alias),
UN_MATCHED_ROW_INDICATOR));
- let having_arm = pull_up_having_expr.map(|f| f.clone().is_not_true());
+ let having_arm = pull_up_having_expr
Review Comment:
indicator col, having arm and unmatched having_default are now built
together in one match.
The one remaining f.clone() is where the is_not_true() method consumes it,
and I've put up a short comment for it.
I briefly considered changing the method to not consume but the method is
already used in a lot of places and changing behavior might be of a larger
scope.
(Happy to do it in another PR, or if you feel that if can be included in
this one, that works 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]