IBM Support

PI47361: QUERY WITH COL1 IS NOT DISTINCT FROM COL2 CAN RETURN INCORRECT RESULT IF COL1 & COL2 ARE NULL AND QUERY IS OFFLOADED

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Query containing 'col1 IS NOT DISTINCT FROM col2' can return
    false instead of true if col1 and col2 are both NULL and the
    query was offloaded to an accelerator.
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All users of DB2 10 and DB2 11 for z/OS who  *
    *                 use query acceleration.                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: Incorrect output might occur when a     *
    *                      query that contains IS NOT DISTINCT     *
    *                      FROM predicate is offloaded to an       *
    *                      accelerator.                            *
    *                                                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When a query containing the predicate
         IS DISTINCT FROM
         or
         IS NOT DISTINCT FROM
    is offloaded to an accelerator, incorrect output might
    occur. For example:
         SELECT COUNT(*) FROM T1 A
         LEFT OUTER JOIN T2 B
         ON A.COL01 = B.COL01
         WHERE A.COL01 IS NOT DISTINCT FROM B.COL01
         FOR FETCH ONLY;
    DB2 fixes the incorrect output of the query conversion.
    
    Additional Keywords:
    IDAAV4R1/K SQLINCORROUT SQLINCORR INCORROUT DB2INCORR/K
    

Problem conclusion

  • DB2 fixes the possible incorrect output for a query offloaded to
    an accelerator and contains IS DISTINCT FROM or IS NOT
    DISTINCT FROM predicates.
    

Temporary fix

  • *********
    * HIPER *
    *********
    

Comments

APAR Information

  • APAR number

    PI47361

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    YesHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-08-21

  • Closed date

    2015-09-10

  • Last modified date

    2015-10-02

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

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

    UI31023 UI31024

Modules/Macros

  • DSNXONZC
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RA10 PSY UI31023

       UP15/09/26 P F509

  • RB10 PSY UI31024

       UP15/09/26 P F509

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEPEK","label":"Db2 for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
02 October 2015