IBM Support

IT20949: SQL0901N WHEN SAP MEMORY TABLE JOINS WITH UNION DISTINCT HAVING JOIN

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • DB2 my produce SQL0901N The SQL statement or command failed
    because of a database system
    error (Reason "this pred does not push to all branch".)
    SQLSTATE=58004) or
    DB2 my produce SQL0901N The SQL statement or command failed
    because of a database system
    error (Reason "Column number out of range".)  SQLSTATE=58004
    
    if the following conditions are met:
    1. The query has join on UNION DISTINCT(UD) and SAP memory table
    2. There is a join predicate on UD and SAP memory table
    3. The UD has JOIN(s)
    
    Sample query:
    SELECT DISTINCT  *
     FROM (SELECT  c1, c2
    FROM t1
    UNION SELECT DISTINCT  t2.c1, t2.c2
    FROM t2
     LEFT OUTER JOIN t3 ON ( t2.c1 = t3.c1  ) ) t ,
    TABLE( SAPTOOLS.MEMORY_TABLE ( CAST( '' AS BLOB( 2G )) ) ) AS
    "t_00" (  "C_2" VARCHAR(60) )
     WHERE  t.c2 = "t_00"."C_2";
    

Local fix

  • query optimization level 1 or use db2set
    DB2COMPOPT=NO_BLU_SAP_MEMTBL
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * all users.                                                   *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 11.1 M3 FP3.                                  *
    ****************************************************************
    

Problem conclusion

  • See Problem Description above.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT20949

  • 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

    2017-06-08

  • Closed date

    2018-03-16

  • Last modified date

    2018-03-16

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

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

    IT21242

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

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

Document Information

Modified date:
29 June 2020