-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Query Execution
-
Fully Compatible
-
v5.0
-
Query Execution 2021-06-14
This pertains specifically to this code:
It is quite possible that all of the candidate plans have exited early. This could happen, for example, if the query involves a sort and all candidate plans require a blocking SORT stage. As written, the loop linked above will execute repeatedly but do nothing. Perhaps the code would be more clear if we returned early when all candidate plans have either failed or exited early?