mirror of https://github.com/citusdata/citus.git
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
parent
e8aa532a90
commit
e998703ff8
|
@ -162,7 +162,7 @@ QueryContainsDistributionKeyEquality(PlannerRestrictionContext *plannerRestricti
|
|||
return true;
|
||||
}
|
||||
|
||||
if (ContainsUnionSubquery(originalQuery))
|
||||
if (originalQuery->setOperations || ContainsUnionSubquery(originalQuery))
|
||||
{
|
||||
return SafeToPushdownUnionSubquery(plannerRestrictionContext);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue