subqueryEntryList needs to come from queryTree, not originalQuery

pull/3746/head
Philip Dubé 2020-04-14 05:22:10 +00:00
parent 176396460a
commit 3d5660cb3f
1 changed files with 1 additions and 1 deletions

View File

@ -672,7 +672,7 @@ MultiNodeTree(Query *originalQuery, Query *queryTree)
* If we have a subquery, build a multi table node for the subquery and
* add a collect node on top of the multi table node.
*/
List *subqueryEntryList = SubqueryEntryList(originalQuery);
List *subqueryEntryList = SubqueryEntryList(queryTree);
if (subqueryEntryList != NIL)
{
MultiCollect *subqueryCollectNode = CitusMakeNode(MultiCollect);