Convert a filter on an
or expression into a plan on the union. In particular, this will
produce a
LogicalUnorderedUnionExpression
with simple filter plans on each child.
+----------------------------+ +-----------------------------------+
| | | |
| LogicalFilterExpression | | LogicalUnorderedUnionExpression |
| p1 v p2 v ... v pn | | |
| | +-----------------------------------+
+-------------+--------------+ / | \
| +--> / | \
| qun / | \
| / | \
| / | \
| +--------+ +--------+ +--------+
| | | | | | |
| | LFE | | LFE | | LFE |
| | p1' | | p2' | .... | pn' |
| | | | | | |
| +--------+ +--------+ +--------+
| / / /
| / newQun1 / newQun2 / newQunn
+------+------+ ---------------------+ / /
| | / /
| any ref | ----------------------------------+ /
| | /
+-------------+ ----------------------------------------------------+
Where p1', p2', ..., pn' are rebased from p1, p2, ..., pn (from qun to newQun).