Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0
-
None
-
None
Description
in query4.q, we can see that it creates a CTE with union all of 3 branches. Then it is going to do a 3 way self-join of the CTE with predicates. The predicates actually specifies only one of the branch in CTE to participate in the join. Thus, in some cases, e.g.,
/- filter(false) -----TS0 union all - filter(false) -----TS1 \-----TS2
we can cut the branches of TS0 and TS1. The union becomes only TS2.
Attachments
Attachments
Issue Links
- links to