IBM Support

IT30741: QUERY COMPILATION RETURNS SQLCODE -901 "PULLDOWN ATTEMPTED ON A COLUMN WITH NO HXP"

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

  • Query compilation may fail with SQLCODE -901, reason "Pulldown
    attempted on a column with no hxp".  This can happen when the
    query has the following characteristics:
    
    - multiple scalar-fullselects with the same source table
    - the ROWNUM pseudocolumn is referenced in a predicate
    
    For example:
    
      SELECT
      ( SELECT T1.C1 FROM T1 ),
      ( SELECT T1.C2 FROM T1 )
      FROM T2
      where ROWNUM = 1
      order by T2.C1;
    
      SQL0901N  The SQL statement or command failed because of a
    database system
      error. (Reason "Pulldown attempted on a column with no hxp".)
    SQLSTATE=58004
    

Local fix

  • Replace the ROWNUM predicate with an equivalent
    fetch-first-clause, e.g.:
    
      SELECT
      ( SELECT T1.C1 FROM T1 ),
      ( SELECT T1.C2 FROM T1 )
      FROM T2
      order by T2.C1
      FETCH FIRST 1 ROW ONLY;
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 version 11.1 fix pack 6                       *
    ****************************************************************
    

Problem conclusion

  • First fixed in Db2 version 11.1 fix pack 6
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT30741

  • 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

    2019-10-29

  • Closed date

    2021-03-31

  • Last modified date

    2021-03-31

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

    IT24301

  • 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

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

Document Information

Modified date:
01 April 2021