suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IT17512 Status: Closed

IN DB2 DPF, POSSIBLE WRONG RESULT WHEN OUTER JOIN PREDICATE COL1=COL2 AND
BOTH COLUMNS ARE FROM THE OUTER TABLE

product:
DB2 FOR LUW / DB2FORLUW / A50 - DB2
Problem description:
DB2 can return wrong query result when all of the following 
conditions are satisfied 
 
1. DPF (Data Partitioning Feature) environment. 
2. The query has a outer join, and the outer join has a 
predicate of the form COLUMN1=COLUMN2, where both columns are 
from the outer table. 
3. Either DB2COMPOPT=OJLOCALPRDPLANNING is set, or the 
NULL-producing side of the outer join is a CSE (Common 
SubExpression), UNION, GROUP-BY, or another outer join. 
4. The query has a key requirement or order requirement on one 
of the columns in the COLUMN1=COLUMN2 predicate. 
 
For example: 
 
The following query can possibly produce a wrong result in DPF 
environment, because the query has an outer join predicate of 
TT.T1_C1 = TT.T1_C2, the NULL-producing side of the outer join 
is another outer join, and the query requires "DISTINCT 
TT.T1_C2" 
 
SELECT DISTINCT TT.T1_C2 FROM T1 TT LEFT OUTER JOIN 
(SELECT T2.T2_C4 FROM T2 FULL OUTER JOIN T1 ON T1.T1_C1 = 
T2.T2_C2) TT2 on TT.T1_C1 = TT.T1_C2 
 
The following query can possibly produce a wrong result in DPF 
environment and when DB2COMPOPT=OJLOCALPRDPLANNING is set, 
because the query has an outer join predicate of 
T1.T1_C1=T1.T1_C2, and the query requires "ORDER BY TT.T1_C2" 
 
SELECT * FROM T2 TT1, (SELECT * FROM T1 LEFT JOIN T2 on 
T1.T1_C1=T1.T1_C2 ) TT 
WHERE TT1.T2_C4 = TT.T1_C1 
ORDER BY TT.T1_C2
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to Db2 10.5 Fix Pack 9 or higher                     * 
****************************************************************
Local Fix:
Solution
First fixed in Db2 10.5 Fix Pack 9
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
14.10.2016
29.09.2017
12.10.2017
Problem solved at the following versions (IBM BugInfos)
9.0.
Problem solved according to the fixlist(s) of the following version(s)