IBM Support

IT24687: QUERIES USING THE SAME UNNEST IN DIFFERENT PARTS OF THE PLAN COULD RETURN WRONG RESULTS FOR SOME COLUMNS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • QUERIES USING THE SAME UNNEST IN DIFFERENT PARTS OF THE PLAN
    COULD RETURN WRONG RESULTS FOR SOME COLUMNS
    
    example of the query is below and UNNEST(accounts_in) will be
    referenced in two different lolepops in the plan.
    
    with TAB1 as ( select T.id , T.ACCT from UNNEST(accounts_in)
    WITH ORDINALITY as T(ACCT, id) ) ,
           TAB2 as ( select distinct ACCT AS DACCT from TAB1 )
    
    select * from TAB1 LEFT OUTER JOIN TAB2 ON TAB1.ACCT =
    TAB2.DACCT
    
    One of the columns (ACCT or DACCT) could return a wrong value.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 11.1 Fixpack 3 Mod 2 or higher                *
    ****************************************************************
    

Problem conclusion

  • First fixed in Db2 11.1 Fixpack 3 Mod 2
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT24687

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-04-10

  • Closed date

    2018-08-07

  • Last modified date

    2018-08-07

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

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

    IT24688

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • RB10 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
07 August 2018