DB2 - Problem description
Problem IC85988 | Status: Closed |
IN SMP WHEN DOING DISTINCT OR GROUP BY THAT INCLUDES TIMESTAMP COLUMNS, IT IS POSSIBLE THAT DUPLICATE ROWS WILL BE RETURNED. | |
product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problem description: | |
In SMP when doing distinct or group by that includes timestamp columns, it is possible that duplicate rows will be returned. example: select distinct col1(varchar), col2(timestamp) from table might return duplicate rows if col1 has values that differ in trailing blanks only. (ex: 'A' and 'A ') Conditions to encounter this problem: - must have SMP enabled (database manager config has the parameter INTRA_PARALLEL set to ON) - The query degree is > 1 (database config for DFT_DEGREE or the CURRENT QUERY DEGREE special register) - must have timestamp column as last column in the list , so it becomes first column in the hash key - must have rows that would have been considered identical and the only difference is varchar column that has spaces | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * SMP only * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Install this fix * **************************************************************** | |
Local Fix: | |
turn SMP off, remove trailing blanks or install this fix. | |
available fix packs: | |
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows | |
Solution | |
Install this fix | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 20.08.2012 20.10.2012 20.10.2012 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) | |
9.7.0.7 |