My Oracle Support Banner

Partition Pruning Not Working Through View With Cast Functions (Doc ID 341807.1)

Last updated on FEBRUARY 03, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.6 to 11.2.0.1 [Release 9.2 to 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

PROBLEM:
--------
A simple select against a partitioned table produces an execution plan that
exhibits partition pruning.  But if a view is created using cast functions,
then the same query against the view produces an execution plan that hits all
partitions.

NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.


TEST CASE:
----------

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.