Describe the bug
BETWEEN operator in CQL2 filters (isBetweenPredicate) does not work. When used in a query, the API returns 400 Bad Request. Other comparison operators like >= and <= work correctly.
To Reproduce
-
Send GET request to:
/collections/sentinel-2-l2a/items?filter=properties.eo:cloud_cover%20BETWEEN%200%20AND%2050&filter-lang=cql2-text&fields=id,properties.eo:cloud_cover&limit=100
-
The API returns HTTP 400 instead of valid results. Replace BETWEEN with >= and <= (e.g. filter=properties.eo:cloud_cover>=0 AND properties.eo:cloud_cover<=50) this works as expected