On this page
Kater CLI Build an analysis query
kater query fields
Lists every field that a new query in a workspace can show, with the operations that each field offers.
Use it to write the request for kater query new. It saves nothing.
Examples
# Go to the snowflake_prod_connection connection in your local copy of Kater contentcd connections/snowflake_prod_connection# List the fields that a new query in the ad_reporting workspace can showkater query fields workspaces/ad_reporting# List only the measureskater query fields workspaces/ad_reporting --kind measure# List only the fields whose name, label, description or model holds the word spendkater query fields workspaces/ad_reporting --search spend# List the fields that a query reading the spend_by_platform query can showkater query fields workspaces/ad_reporting --source query.spend_by_platformArguments
Options
It also takes the global options --json, --kater-root, --scope and --help.
How to read the list
Fields that offer the same operations are listed together, under those operations. Each operation’s parameters are written one time. In a kater query new request, give a field’s name and at most one operation from its list. Add that operation’s parameters.
The list comes from what the workspace’s last compile stored. kater operation list, with a query file, --field and --operation, gives the whole parameter schema of one operation.