Skip to content
docs
Arxo ↗

LDC-Q0101 — Ordering comparisons are not part of the query language

For LLMs5 sections

A structural query can test equality, difference, and membership — whether two values match, or one sits inside the other. It cannot ask which of two values is larger: ordering checks have no meaning over snapshot rows, where every comparison is a match or a miss. When the text uses a larger-than, smaller-than, or combined ordering sign, the engine refuses that operator at the exact spot where it appears.

Restate the question as a match: compare with an equality sign, or move the ordering logic into a question answered by the core engine over a package, which is built for exactly that kind of reasoning.

LawQL
from r in rules where r.id > 3 select r
LawQL
from r in rules select r

The engine reports this in its own wording:

Output
LDC-Q0101: ordinal comparisons are forbidden in LawQL v1 (line 1, column 28). Hint: use query … over … and the core engine

Documentation for Arxo. Writings — blog.arxo.io.

Anonymous visit counts on stats.arxo.io, no cookies.