Wrong Results from PX Query with EXISTS and NOT EXISTS Predicate (Doc ID 1079184.1)

Last updated on MARCH 27, 2014

Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.4 to 11.2.0.2.0 - Release: 10.2 to 11.2
Information in this document applies to any platform.
Issue reproduces in 10.2.0.4 and 11.1.0.7

Symptoms

The following query returns rows in serial what is correct and no rows in parallel. 

SELECT * 
FROM   NDH_Q.RAHMENVERTRAEGE q 
WHERE  NOT EXISTS (SELECT 1 
FROM   NDH_Z.RAHMENVERTRAEGE zTest 
WHERE  zTest.RAVE_LFD_NR = q.RAVE_LFD_NR) 
AND    ((EXISTS (SELECT 1 
FROM   NDH_Z.haendler h 
WHERE  h.haen_eigenes_unternehmen = 'J' 
AND    h.haen_ist_haendler = 'J' 
AND    h.haen_gueltigkeitsbereich = q.rave_id_verbrauchsart 
AND    (h.haen_lfd_nr = q.rave_haendler_lfd_nr OR h.haen_lfd_nr = 
q.rave_beistellungshaen_lfd_nr OR 
       h.haen_lfd_nr = q.rave_notlieferant_lfd_nr OR h.haen_lfd_nr = 
q.rave_haen_gebietsvers_lfd_nr)))) 

Query may return wrong result too, instead of no rows, in parallel.


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms