Cardinality on pipeline function

From: Sidney Chen <>
Date: Wed, 30 Oct 2013 10:56:34 +0800
Message-ID: <>

Hi list,
Anyway to make optimizer aware of the actual rows from the pipelined function, something like dynamic sampling? For below sql, I need to add cardinality hint to specify the approx rows from the TABLE operation, the default cardinality on pipeline function seems 8168 and usually does not match the actual rows.
        SELECT /*+ cardinality(t1 1)*/COUNT(1)
          INTO V_COUNT
          FROM TABLE(GET_TABLE_FUNC(:v0)) t1,
         WHERE =
           AND t2.BATCH_ID = :v1;


Sidney Chen

-- Received on Wed Oct 30 2013 - 03:56:34 CET

Original text of this message