[fix](fe) slots in having clause should be set to need materialized (#27412)
This commit is contained in:
@ -698,6 +698,11 @@ public class SelectStmt extends QueryStmt {
|
||||
if (whereClause != null) {
|
||||
whereClause.collect(SlotRef.class, conjuntSlots);
|
||||
}
|
||||
|
||||
if (havingClauseAfterAnalyzed != null) {
|
||||
havingClauseAfterAnalyzed.collect(SlotRef.class, conjuntSlots);
|
||||
}
|
||||
|
||||
resultSlots.removeAll(orderingSlots);
|
||||
resultSlots.removeAll(conjuntSlots);
|
||||
// reset slots need to do fetch column
|
||||
|
||||
Reference in New Issue
Block a user