avamingli commented on code in PR #685:
URL: https://github.com/apache/cloudberry/pull/685#discussion_r1867415213


##########
src/backend/optimizer/plan/transform.c:
##########
@@ -520,3 +521,124 @@ replace_sirvf_rte(Query *query, RangeTblEntry *rte)
 
        return rte;
 }
+
+/*
+ * Does query has SRFs, or WITH ORDINALITY?
+ */
+bool query_has_srf(Query *query)
+{
+       if (query->hasTargetSRFs)
+       {
+               return true;
+       }
+
+       /* Double check for subquery. */

Review Comment:
   Fixed.



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