home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Neueste VersionenFixList
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
Haben Sie Probleme? - Kontaktieren Sie uns.
Kostenlos registrieren anmeldung-x26
Kontaktformular kontakt-x26

DB2 - Problembeschreibung

Problem IT09137 Status: Geschlossen

WRONG RESULT FROM STATEMENT WITH TWO OR MORE OLAP FUNCTIONS WITH COMPATIBLE
PARTITION-BY CLAUSES WITH ONE EQUATING TO CONSTANTS

Produkt:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problembeschreibung:
This problem only occurs in a DPF or SMP parallelism enabled 
environment. 
 
You might encounter an incorrect result set for a SQL statement 
that contains two or more OLAP functions with compatible 
partition-by clauses wherein at least one OLAP function contains 
a partition-by clause where all columns equate to constant 
values. A column can equate to a constant value by specifying 
the constant values explicitly in the partition by clause or the 
columns in the partition by clause are referenced in equality 
predicates that equate to constants. 
 
The following example specifies the constant value explicitly 
SELECT ... SUM(X) OVER (PARTITION BY 1 ...) ... 
 
and the following example references the partition by column in 
an equality predicate 
SELECT ... SUM(X) OVER (PARTITION BY Y ...) ... WHERE Y = 1 ...
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* DPF or SMP parallelism enabled environments                  * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 version 10.1.0.5.                             * 
****************************************************************
Local-Fix:
You can rewrite your query to move the OLAP function with 
constant partition-by clause into a nested table expression. 
For example, if you have two compatible OLAP functions in a 
query as follows: 
 
SELECT SUM(X) OVER (PARTITION BY A), SUM(Y) OVER (PARTITION BY 
A,B) FROM T1 WHERE T1.A=1 
 
then you can rewrite it as a nested table expression to avoid 
the incorrect result: 
 
SELECT SUMX, SUM(Y) OVER (PARTITION BY A,B) FROM (SELECT A,B,Y, 
SUM(X) OVER (PARTITION BY A) SUMX FROM T1 WHERE A=1) AS TMP
Lösung
The problem is first fixed in DB2 version 10.1.0.5.
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
27.05.2015
27.05.2015
10.07.2015
Problem behoben ab folgender Versionen (IBM BugInfos)
Problem behoben lt. FixList in der Version
10.1.0.5 FixList