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 IC69061 Status: Geschlossen

UNEXPECTED RESULTS FOR A QUERY THAT CONTAINS MULTIPLE DISTINCT'S AND
REGISTRY SETTING FOR ENHANCED_MULTIPLE_DISTINCT IS ENABLED.

Produkt:
DB2 FOR LUW / DB2FORLUW / 950 - DB2
Problembeschreibung:
Incorrect results for a query that contains multiple distinct's 
and registry setting for ENHANCED_MULTIPLE_DISTINCT is turned 
on. 
. 
Description: 
If the following conditions are true: 
a) The DB2 instance is configured with DPF (multiple partitions) 
and the registry variable DB2_EXTENDED_OPTIMIZATION is set to 
ENHANCED_MULTIPLE_DISTINCT. 
b) A query is run that contains multiple distinct operations 
(see example) 
c) The query has predicates that need to be evaluated without an 
index.  That is, in order to qualify or disqualify the row 
during predicate evaluation, it has to fetch the row and read 
the columns to compare the predicate rather than reading just 
the index (A sargable predicate). 
Then the query may return incorrect results. 
For example: 
select sum(distinct col2), avg(distinct col3), sum(distinct 
col4) 
from test 
where col5.data = 'abcde' 
group by col1; 
The wrong results is that even rows that should be disqualified 
based on the predicate col5.data = 'abcde', are still included 
in the query incorrectly.  Thus, any sums or averages that are 
performed on the data may have extra data used in those 
aggregate operations.
Problem-Zusammenfassung:
Incorrect results for a query that contains multiple distinct's 
and registry setting for ENHANCED_MULTIPLE_DISTINCT is turned 
on. 
. 
Description: 
If the following conditions are true: 
a) The DB2 instance is configured with DPF (multiple partitions) 
and the registry variable DB2_EXTENDED_OPTIMIZATION is set to 
ENHANCED_MULTIPLE_DISTINCT. 
b) A query is run that contains multiple distinct operations 
(see example) 
c) The query has predicates that need to be evaluated without an 
index.  That is, in order to qualify or disqualify the row 
during predicate evaluation, it has to fetch the row and read 
the columns to compare the predicate rather than reading just 
the index (A sargable predicate). 
Then the query may return incorrect results. 
For example: 
select sum(distinct col2), avg(distinct col3), sum(distinct 
col4) 
from test 
where col5.data = 'abcde' 
group by col1; 
The wrong results is that even rows that should be disqualified 
based on the predicate col5.data = 'abcde', are still included 
in the query incorrectly.  Thus, any sums or averages that are 
performed on the data may have extra data used in those 
aggregate operations.
Local-Fix:
If all of the local predicates can be resolved by doing 
an index scan as start/stop key predicates, (and not as 
sargable predicates), then this is a possible workaround 
to the problem.
Lösung
apar IC69061 
fixed >= v95 fpk7
Workaround
If all of the local predicates can be resolved by doing 
an index scan as start/stop key predicates, (and not as 
sargable predicates), then this is a possible workaround 
to the problem.
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
07.06.2010
20.12.2010
20.12.2010
Problem behoben ab folgender Versionen (IBM BugInfos)
9.5.FPk7
Problem behoben lt. FixList in der Version