On this page
Kater CLI Find and understand model
kater model check-join
Checks one of a model's joins on your warehouse, by counting the rows that match.
It says whether the rows fit the cardinality that the join declares, and which cardinality fits them best. It changes no file.
Examples
# Go to the connection's shared modelscd connections/snowflake_prod_connection/modeling# Check the lifecycle_profile join of the marketing_sessions modelkater model check-join kater_objects/semantic_models/marketing/MARKETING_SESSIONS.sql --relationship lifecycle_profile# Run the check on the warehouse again, in place of the kept answerkater model check-join kater_objects/semantic_models/marketing/MARKETING_SESSIONS.sql --relationship lifecycle_profile --againArguments
Options
It also takes the global options --json, --kater-root, --scope and --help.
What the check says
- How many rows of the model’s earlier source match the joined model, and the most rows that one row matches.
- How many rows and key values the joined model has, and whether it has one row for each key value.
- Whether the rows fit the declared cardinality, such as many to one. When they do not, it says what they are. When a closer cardinality fits, it says so.
- When the check ran, and whether the answer is one that Kater kept.
Kater keeps a check until the model’s SQL changes. See Relationships and joins.