Skip to content

[Backport] add native filters for "(filter) is true" and "(filter) is false"#15197

Merged
LakshSingla merged 1 commit intoapache:28.0.0from
clintropolis:backport-15182-to-28.0.0
Oct 19, 2023
Merged

[Backport] add native filters for "(filter) is true" and "(filter) is false"#15197
LakshSingla merged 1 commit intoapache:28.0.0from
clintropolis:backport-15182-to-28.0.0

Conversation

@clintropolis
Copy link
Member

Backport of #15182 to 28.0.0.

…ache#15182)

* add native filters for "(filter) is true" and "(filter) is false"

changes:
* add IsTrueDimFilter, IsFalseDimFilter, and abstract IsBooleanDimFilter for native json filter implementations of `(filter) IS TRUE` and `(filter) IS FALSE`
* add IsBooleanFilter for actual filtering logic for these filters, which ignore includeUnknown to always use matches with false for true and !matches with true for false
* fix test incorrectly adjusted to wrong answer in apache#15058
* add tests for default value mode
@LakshSingla LakshSingla merged commit 0825251 into apache:28.0.0 Oct 19, 2023
@clintropolis clintropolis deleted the backport-15182-to-28.0.0 branch October 19, 2023 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants