// 3) only one agg function (Check if it's count(*) below).
// 4) No distinct agg call.
if (! (oldGrpScan.getScanStats().getGroupScanProperty().hasExactRowCount()
&& agg.getGroupCount() == 0
&& agg.getAggCallList().size() == 1
&& !agg.containsDistinctCall())) {
return;
}
AggregateCall aggCall = agg.getAggCallList().get(0);