Skip to content

docs(filters): document the none filter literal#326

Merged
mtoy-googly-moogly merged 1 commit into
mainfrom
docs-filter-none-literal
Jul 7, 2026
Merged

docs(filters): document the none filter literal#326
mtoy-googly-moogly merged 1 commit into
mainfrom
docs-filter-none-literal

Conversation

@mtoy-googly-moogly

Copy link
Copy Markdown
Contributor

Documents the none filter literal added in malloydata/malloy#2967 — the always-false companion to the empty filter f''. none matches no rows and works across every filter type (string, number, boolean, temporal).

Updates src/documentation/language/filter-expressions.malloynb:

  • Stringnone (matches nothing) and \none (the literal string none) in the examples table; -none (matches everything) in the negation table; \none added to the escaping note.
  • Numericnone in the examples table; not none in the negation table.
  • Temporalnone in the ranges table.
  • Boolean — a none row (false for all inputs) plus a note that not none matches everything.

none now sits alongside the per-type null entry that each table already carried, so it reads consistently.

🤖 Generated with Claude Code

Adds the `none` keyword — the always-false companion to the empty
filter `f''` — to the filter expression reference. It matches no rows
and works for every filter type (string, number, boolean, temporal).

Documents `none` (and its negation) in the string, numeric, temporal,
and boolean tables, alongside the escaped literal `\none` for matching
the string "none" in a string filter.

Covers malloydata/malloy#2967.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mtoy-googly-moogly
mtoy-googly-moogly merged commit e5cf5c8 into main Jul 7, 2026
5 checks passed
@mtoy-googly-moogly
mtoy-googly-moogly deleted the docs-filter-none-literal branch July 7, 2026 23:50
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