IBM Support

IT37421: Wrong result for aggregate query via index - MIN for example - when NULL contained in column alongside non-NULL data

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When a select min ( column ) is used and the table contains a
    NULL value in the result set, the query returns different
    results depending on using a sequential scan or a index scan
    
    select  --+ index ( t1 )
    nvl(min(b),'isnull') from t1 where a in (2,3);
    select  --+ full ( t1 )
    nvl(min(b),'isnull') from t1 where a in (2,3);
    
    (expression)
    isnull
    1 row(s) retrieved.
    
    (expression)
    2
    1 row(s) retrieved.
    
    This problem started appearing in 12.10.xC14 and 14.10.xC4.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of Informix Server 12.10.xC14 and 14.10.xC4 - xC6.     *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Informix Server 12.10.xC15 or 14.10.xC7 (when     *
    * available).                                                  *
    ****************************************************************
    

Problem conclusion

  • Fixed in Informix Server 12.10.xC15 and 14.10.xC7.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT37421

  • Reported component name

    INFORMIX SERVER

  • Reported component ID

    5725A3900

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-06-25

  • Closed date

    2021-08-31

  • Last modified date

    2021-08-31

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

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

Fix information

  • Fixed component name

    INFORMIX SERVER

  • Fixed component ID

    5725A3900

Applicable component levels

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSGU8G","label":"Informix Servers"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"C10"}]

Document Information

Modified date:
01 September 2021