Skip to main content
← Back to list
01Issue
FeatureShippedSwamp Club
Assigneesstack72

Relationships

#1291 Docs: update data.query and CEL expressions references for SQL pushdown

Opened by stack72 · 7/20/2026· Shipped 7/20/2026

Context

PR swamp-club/swamp#1910 (swamp-club#1284) added SQL predicate pushdown for data.query. Two predicates are now pushed to SQLite WHERE clauses before CEL evaluation:

  • Implicit isLatest = 1 filter
  • modelName == "<literal>" equality

The full CEL predicate still evaluates on every row returned by SQL, so correctness is unchanged. But the execution model description in the manual is now slightly stale.

What needs updating

content/manual/reference/cel-expressions.md

Line ~342: data.query(predicate) is described as "Runs a CEL predicate against all data artifacts." This is now technically inaccurate — when the predicate contains modelName == "...", the query hits a SQLite index first and only evaluates CEL on the narrowed set. Consider updating to something like "Queries data artifacts matching a CEL predicate" (which is accurate regardless of execution strategy).

content/manual/reference/data.md

Line ~712: swamp data query [predicate] is described as "Query data using a CEL predicate. The predicate evaluates against DataRecord fields directly." This is still accurate but could mention that common predicates on indexed fields (like modelName) are accelerated automatically.

Scope

This is a minor wording update — no new sections or restructuring needed. The user-facing behavior and API are unchanged; only the internal execution strategy differs.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 5 MOREREVIEW+ 3 MOREPR_MERGED+ 1 MORENOTIFICATION_SKIPPED

Shipped

7/20/2026, 9:21:34 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack727/20/2026, 9:05:35 PM

Sign in to post a ripple.