jiaqizho commented on code in PR #1192:
URL: https://github.com/apache/cloudberry/pull/1192#discussion_r2272214667


##########
src/backend/gporca/libgpopt/src/operators/CPhysicalAgg.cpp:
##########
@@ -293,11 +292,65 @@ CDistributionSpec *
 CPhysicalAgg::PdsMaximalHashed(CMemoryPool *mp, CColRefArray *colref_array)
 {
        GPOS_ASSERT(nullptr != colref_array);
+       CColRefArray *pcraResHashs = nullptr;
+
+       if (GPOS_FTRACE(EopttraceAggRRSFirstKey)) {
+               pcraResHashs = GPOS_NEW(mp) CColRefArray(mp);
+               if (colref_array->Size() > 0) {

Review Comment:
   `colref_array->Size()` can be 0. I don't understand why we need to check if 
colref_array->Size() LT 0 ?
   



-- 
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]

Reply via email to