Skip to content

feat(query): add is_null and is_not_null filter operators - #1252

Merged
cybermaggedon merged 1 commit into
release/v3.0from
feature/is-null-operators
Nov 27, 2026
Merged

cybermaggedon merged 1 commit into
release/v3.0from
feature/is-null-operators

Conversation

@cybermaggedon

@cybermaggedon cybermaggedon commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds is_null and is_not_null nullary filter operators to FILTER_OPS in the query formulation service
  • Introduces NULLARY_OPS set to distinguish operators that take no value
  • Adds validation: non-nullary operators now explicitly require a value field

These operators enable QuerySpec filters like {"column": "x", "op": "is_null"} for null testing in SQL backends. The companion prompt/schema changes are in the templates repo.

Test plan

  • Verify is_null and is_not_null pass validation without a value field
  • Verify existing operators (eq, ne, etc.) still require a value field
  • Verify unknown operators are still rejected
  • End-to-end: LLM generates is_null filter, passes validation, reaches DuckDB action

Extends FILTER_OPS with nullary operators for null testing. These
operators take no value field, enabling QuerySpec filters like
{"column": "x", "op": "is_null"}. Validation enforces that non-nullary
ops still require a value.
@github-actions

Copy link
Copy Markdown

Contributor License Agreement ✅

All contributors have signed the CLA. Thank you!

@cybermaggedon
cybermaggedon merged commit c9b38c3 into release/v3.0 Nov 27, 2026
3 checks passed
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.

1 participant