# S02039 {#S02039}

## Error Code {#error_code .section}

S02039

## Error Message {#error_message .section}

`The number of partitions […] relevant to the query is too large. Please add more specific filtering conditions on partition columns in WHERE clause, or consider changing the value of the configuration parameter maxPartitionNumPerQuery. RefId:S02039`

## Probable Causes {#probable_causes .section}

The maximum number of partitions involved in a single SELECT query is limited by the *maxPartitionNumPerQuery* configuration parameter. If the number of partitions involved after filtering with the WHERE clause exceeds this limit, an error will occur.

## Solutions {#solutions .section}

-   Change the value of the configuration parameter *maxPartitionNumPerQuery*.

-   Add more specific filtering conditions on partition columns in WHERE clause.


**Parent topic:**[Error Code Reference](../../Troubleshooting/ErrorCode.md)

