IBM Support

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

Subscribe

You can track all active APARs for this component.

 

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

  • RB10 PSN

       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":"11.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
04 May 2022