We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22fdd35 commit 1c6f6e3Copy full SHA for 1c6f6e3
src/backend/optimizer/plan/pgxcplan.c
@@ -1664,7 +1664,9 @@ create_remotegrouping_plan(PlannerInfo *root, Plan *local_plan)
1664
else
1665
local_plan->qual = local_qual;
1666
1667
- remote_scan->remote_query->havingQual = (Node *)remote_qual;
+ remote_scan->remote_query->havingQual =
1668
+ (Node *)(remote_qual ? make_ands_explicit(remote_qual) : NULL);
1669
+
1670
/*
1671
* Generate the targetlist to be shipped to the datanode, so that we can
1672
* check whether we are able to ship the grouping clauses to the datanode/s.
0 commit comments