IBM Support

IC75197: INSTANCE MAY ABEND COMPILING A QUERY CONTAINING PREDICATES ON MAX OR MIN FUNCTIONS AGGREGATED ON CASE EXPRESSIONS

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • DB2 instance may abend during compilation of a query that
    satisfies the following conditions:
    - There is an equality predicate (EQPRD) in the query
    - One side of EQPRD is either a constant, host-variable or
    special register (CONST)
    - The other side of EQPRD is a column derived from the output of
    a MAX or MIN aggregate function
    - The MAX or MIN function aggregates a column from a nested
    subselect (NS)
    - The column from NS is a CASE expression (CASEEXP)
    - CASEEXP has only 1 WHEN clause
    - The WHEN clause is also an EQPRD (WHENPRD)
    - One side of WHENPRD is CONST
    - The other side of WHENPRD is non-CONST
    - NS also has another CASE expression as an output column which
    is not referenced anywhere else
    - NS has a SELECT DISTINCT clause
    

Local fix

  • Rewrite the problematic query into a semantically identical form
    to preclude any of the conditions described above, e.g., EQPRD
    may be rewritten as a redundant IN predicate.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description.                                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix Pack 5 or later.              *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 Version 9.7 Fix Pack 5.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC75197

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-03-23

  • Closed date

    2011-12-07

  • Last modified date

    2011-12-07

  • APAR is sysrouted FROM one or more of the following:

    LI75841

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC75197

Modified date: 07 December 2011