Kater CLI Find and understand model
kater model joinable
Lists the models that this model can join on fields it already has, best first.
Each one shows its address, and the alias and the keys that a new join would use. When its SQL proves the cardinality, it shows that too. It reads no warehouse and changes no file.
Examples
# Go to the connection's shared modelscd connections/snowflake_prod_connection/modeling# List the models that client_analysis_inputs can joinkater model joinable kater_objects/semantic_models/marts/CLIENT_ANALYSIS_INPUTS.sql# List only the ways to join the client keys datasetkater model joinable kater_objects/semantic_models/marts/CLIENT_ANALYSIS_INPUTS.sql --source kater_dataset.dim_velir_ga4__client_keysArguments
Options
It also takes the global options --json, --kater-root, --scope and --help.
The order
- Proven keys first. The SQL of these models proves that they have one row for each key. Each one shows the cardinality that this gives.
- Id fields next. These are the models that match on their id fields. Their cardinality is not proven, so check the join with
kater model check-joinafter you add it.
With --json, each one also has the relationship name that a new join would use. To add the join, use kater model edit with an add_relationship change.