Too complex query

Discover the solution for queries that exceed the maximum length.

If you see the error message below, the CQL query you are trying to evaluate is longer than the maximum of 500 characters.

To resolve it, reduce the query size by:

  • Simplifying the expression — remove redundant conditions and use shorter CQL equivalents.
  • Splitting the logic — break the query into smaller evaluations and combine the results in your code.
  • Passing data through the context — provide precomputed values via the evaluation context instead of encoding them in the query.