Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzl25 committed Feb 7, 2024
1 parent 1fa68b0 commit c709cb4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ use crate::utils::{Condition, IndexSet};
/// After:
///
/// ```text
/// LogicalApply [yyy = xxx]
/// LogicalJoin [yyy = xxx]
/// / \
/// LHS Project
/// |
Expand Down Expand Up @@ -144,6 +144,7 @@ impl Rule for PullUpCorrelatedPredicateAggRule {
let new_bottom_proj: PlanRef = LogicalProject::new(filter, bottom_proj_exprs).into();

// If there is a count aggregate, bail out and leave for general subquery unnesting to deal.
// When group by is empty, count would return 0 instead of null.
if agg_calls
.iter()
.any(|agg_call| agg_call.agg_kind == AggKind::Count)
Expand Down

0 comments on commit c709cb4

Please sign in to comment.