Playground¶
Write claims, then lint them, format them, or see the SQL they compile to for any of the eleven native dialects. This is the real FactLang library, the wheel built from this site's commit, running in your browser through Pyodide. Nothing is sent to a server, and no warehouse is needed: verdicts need data, so this page stops at the SQL.
Starting Python in your browser. The first visit downloads about 10 MB; later visits are cached.
Ctrl + Enter runs the last action. Lint also runs as you type.
What you can try¶
- Lint parses and analyses the claims against the standard verbs, and prints every diagnostic with a caret, its code and a suggestion when there is one. There is no catalog here, so table and column names are not checked.
- Format prints the canonical form: the spelling FactLang hashes and stores.
- Explain SQL shows each claim's query for the chosen dialect, its bind parameters and
the dialect's tier. Switch dialects to see how
COUNT_BIG,TOP,COUNTIForFILTER (WHERE …)replace each other while the meaning stays the same.
To run claims against real data, install FactLang and follow Getting started.