Files
doc-exports/docs/dli/umn/dli_03_0145.html
Su, Xiaomeng 3a07c40729 dli_umn_20250212
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2025-02-24 08:11:08 +00:00

1.5 KiB

Why Is Error "There should be at least one partition pruning predicate on partitioned table XX.YYY" Reported When a Query Statement Is Executed?

When you query the partitioned table XX.YYY, the partition column is not specified in the search criteria.

A partitioned table can be queried only when the query condition contains at least one partition column.

Solution

Query a partitioned table by referring to the following example:

Assume that partitionedTable is a partitioned table and partitionedColumn is a partition column. The query statement is as follows:

SELECT * FROM partitionedTable WHERE partitionedColumn  = XXX

When querying each partitioned table, at least one partition condition must be included.