UnionProcContext ctx = (UnionProcContext) procCtx;
UnionParseContext uCtx = ctx.getUnionParseContext(union);
// No need for this if all sub-queries are map-only queries
// If all the queries are map-only, anyway the query is most optimized
if ((uCtx != null) && (uCtx.allMapOnlySubQ())) {
return null;
}
pos++;
pushOperatorsAboveUnion(union, stack, pos);