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


##########
src/backend/optimizer/plan/planner.c:
##########
@@ -593,6 +593,8 @@ standard_planner(Query *parse, const char *query_string, 
int cursorOptions,
        {
                Path       *cheapest_partial_path;
                cheapest_partial_path = linitial(final_rel->partial_pathlist);
+               if (force_parallel_mode == FORCE_PARALLEL_ON)
+                       final_rel->pathlist = NIL;

Review Comment:
   pathlist can not be empty- this will trigger a 'could not derive a plan for 
query' failure.



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