sql / dbt tests

dbt Test Generator

Paste a model's SELECT query and get a schema.yml stub with test suggestions — unique/not_null on likely keys, accepted_values on obvious enums.

Runs fully in your browser · nothing is sent anywhere

Heuristics only, not data-verified. This tool has no access to your warehouse — it can't check whether a column is actually unique, actually non-null, or what values it actually contains. Suggestions are based on column naming patterns alone (id, _id, is_/has_, status/type...). Review every checkbox before committing — especially accepted_values lists, which are placeholders until you fill in real values.

query.sql
Detected columns
Paste a SELECT query above to detect columns.
Waiting for input…0 chars
output
Paste a query and click Generate to get a schema.yml stub.

How it works

Advertisement