Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.25.0, 1.31.0
Description
For the following query:
SELECT * FROM ( SELECT A.C0 AS L, B.C1 AS R1, B.C2 AS R2 FROM A LEFT JOIN B ) WHERE (R1 IS NOT NULL) OR (R2 IS NOT NULL)
it should be optimized to
SELECT A.C0 AS L, B.C1 AS R1, B.C2 AS R2 FROM A INNER JOIN B
but it didn't.
The FilterJoinRule fails to simplify this specific case, however if we have only 1 IS_NOT_NULL in the filter condition, it is able to do so.
I think the problem is in the Strong class.
Attachments
Issue Links
- links to