Skip to content

Commit

Permalink
[chore](memo) record every group expression est. rows (apache#36879)
Browse files Browse the repository at this point in the history
  • Loading branch information
morrySnow authored Jun 27, 2024
1 parent 7fc2931 commit 83cd4f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ private void estimate() {
.noneMatch(e -> newStats.isInputSlotsUnknown(e.getInputSlots()));
groupExpression.getOwnerGroup().setStatsReliable(isReliable);
groupExpression.getOwnerGroup().setStatistics(newStats);
groupExpression.setEstOutputRowCount(newStats.getRowCount());
} else {
// the reason why we update col stats here.
// consider join between 3 tables: A/B/C with join condition: A.id=B.id=C.id and a filter: C.id=1
Expand All @@ -258,6 +257,7 @@ private void estimate() {
// now we update OwnerGroup().getStatistics().A.id.ndv to 1
groupExpression.getOwnerGroup().getStatistics().updateNdv(newStats);
}
groupExpression.setEstOutputRowCount(newStats.getRowCount());
groupExpression.setStatDerived(true);
}

Expand Down

0 comments on commit 83cd4f0

Please sign in to comment.