Skip to content

introduced empty rql filter#2397

Merged
thjaeckle merged 1 commit intoeclipse-ditto:masterfrom
beyonnex-io:support-empty-rql
Apr 9, 2026
Merged

introduced empty rql filter#2397
thjaeckle merged 1 commit intoeclipse-ditto:masterfrom
beyonnex-io:support-empty-rql

Conversation

@hu-ahmed
Copy link
Copy Markdown
Contributor

@hu-ahmed hu-ahmed commented Apr 7, 2026

Resolves: #2377

Summary

Introduces a new RQL filter function empty(<field>) that returns true when a field is absent
or void of content (null, empty array, empty object, empty string), regardless of its JSON type.

This enables use cases like finding all things where e.g. attributes/tags either doesn't exist
or is an empty array — which was previously not expressible in a single RQL filter.

@thjaeckle
Copy link
Copy Markdown
Member

System tests run revealed some errors:
https://github.com/eclipse-ditto/ditto/actions/runs/24084958670

@hu-ahmed hu-ahmed force-pushed the support-empty-rql branch from 13d56f2 to 417a778 Compare April 9, 2026 11:12
@thjaeckle
Copy link
Copy Markdown
Member

System tests run:
https://github.com/eclipse-ditto/ditto/actions/runs/24084958670

Just contains 1 error which is known to sometimes fail (unrelated to the changes) ✅

Copy link
Copy Markdown
Member

@thjaeckle thjaeckle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks a lot for the added feature @hu-ahmed 🎉

@thjaeckle thjaeckle merged commit 5d2b373 into eclipse-ditto:master Apr 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Support empty() RQL function to filter for absent or empty fields

2 participants