On this page
Kater CLI Find and understand model
kater model explain
Explains how a model's fields are computed, field by field.
Use it to learn what a measure adds up, what it filters and which columns it reads. Nothing runs on the warehouse, and no file changes.
Examples
# Go to the connection's shared modelscd connections/snowflake_prod_connection/modeling# Explain how the Spend measure of the ad_reporting model is computedkater model explain sum__spend --relation semantic.ad_reporting# Explain every field that the ad_reporting model declareskater model explain --relation semantic.ad_reporting# Show only the formula of the Spend measurekater model explain sum__spend --relation semantic.ad_reporting --density signature# Also show how each model on the way computes it, step by stepkater model explain sum__spend --relation semantic.ad_reporting --density pageArguments
Options
It also takes the global options --json, --kater-root, --scope and --help.
What an explanation shows
For each field, it shows what you can group or filter it by, and what it requires. It also shows its formula, the columns it reads, the joins and filters it adds, and its format. Without --json, the explanation is Markdown text.