Bug:3260692 ON Clause conditions are missing from predicates in case of