zhangbutao commented on code in PR #38089:
URL: https://github.com/apache/doris/pull/38089#discussion_r1683671356
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java:
##########
@@ -610,8 +610,8 @@ public Optional<ResultSet> handleQueryInFe(StatementBase
parsedStmt) {
}
if (physicalPlan instanceof PhysicalResultSink
- && physicalPlan.child(0) instanceof PhysicalHashAggregate &&
!getScanNodes().isEmpty()
- && getScanNodes().get(0) instanceof IcebergScanNode) {
+ && !getScanNodes().isEmpty() && getScanNodes().get(0)
instanceof IcebergScanNode
+ &&
getScanNodes().get(0).getPushDownAggNoGroupingOp().equals(TPushAggOp.COUNT)) {
Review Comment:
@924060929 Many thanks for your suggestion! Will check this later.
--
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]