Metrics are YAML.
Lightdash metrics are YAML with SQL snippets, in your dbt project or in Lightdash’s own files. A metric cannot use a window function, and a level-of-detail metric must be built in the dbt model first.
In Kater Kater SQL is your warehouse’s SQL with DIMENSION, MEASURE and EVAL. Your agent writes it, and anyone who reads SQL can review it.