Enable restriction eq. checks for top level set operations

We used to only support pushdownable set operations inside a
subquery, however, we could easily expand the restriction
checks to cover top level set operations as well.
pull/2016/head
Onder Kalaci 2018-02-13 13:40:37 +02:00
parent e8aa532a90
commit e998703ff8
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ QueryContainsDistributionKeyEquality(PlannerRestrictionContext *plannerRestricti
return true;
}
if (ContainsUnionSubquery(originalQuery))
if (originalQuery->setOperations || ContainsUnionSubquery(originalQuery))
{
return SafeToPushdownUnionSubquery(plannerRestrictionContext);
}