IBM Support

IT24688: 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 fixed if next.

Error description

  • Simple Reproduction:
    
    db2 "CREATE TYPE accounts AS CHARACTER(9) ARRAY[100]"
    
    db2 "create variable accounts_in accounts"
    
    db2 "set accounts_in = ARRAY['045HE2373']"
    
    db2 "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"
    
    ID          ACCT      DACCT
    ----------- --------- ---------
              1 -         045HE2373
    
      1 record(s) selected.
    
    
    We can see that value of ACCT column is reported as Null which
    is not correct.
    

Local fix

  • NA
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * See Error Description                                        *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to 10.5 Fp10                                         *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IT24688

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A50

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    YesHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-04-10

  • Closed date

    2018-07-11

  • Last modified date

    2018-07-12

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

    IT24687

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

Fix information

Applicable component levels

  • RA50 PSY

       UP

  • RB10 PSY

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.5","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
05 November 2021