Skip to content

fix: CQL2 filters AND/OR grouping silently lost in collection search - #133

Draft
anesson-cs wants to merge 18 commits into
mainfrom
cql2-precedence
Draft

fix: CQL2 filters AND/OR grouping silently lost in collection search#133
anesson-cs wants to merge 18 commits into
mainfrom
cql2-precedence

Conversation

@anesson-cs

@anesson-cs anesson-cs commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Your checklist for this pull request

  • During a collection search, CQL2 filters that mix AND with an OR group: "A AND (B OR C)" is silently evaluated as "(A AND B) OR C". The C branch escapes all other conditions, so collections that do not match the filter are returned, with no error or warning. This issue should have been fixed.

Description

By using the version 0.6.0 or upper of cql2 library, the problem is fixed.

Further comments

This version created issues with the conversion of t_overlaps() and t_overlappedby() to sql, so this PR must be closed after a new release fixing these new issues.

@anesson-cs anesson-cs changed the title CQL2 filter bug: AND/OR grouping silently lost in collection search fix: CQL2 filters AND/OR grouping silently lost in collection search Aug 19, 2026
@anesson-cs
anesson-cs marked this pull request as draft August 19, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants