bugs.core_3312_test. Sub-optimal join plan when the slave table depends on the master via the "OR" predicate