On this page
Kater CLI Build an analysis field
kater field edit
Changes a field of a saved query that an operation made, as the Edit form in Kater does.
It shows the field before and after the change, with its Kater SQL and its rows. A field written in its own SQL changes with kater source write instead.
Examples
# Go to the ad_reporting workspace in your local copy of Kater contentcd connections/snowflake_prod_connection/workspaces/ad_reporting# See how the rank of conversions is made now, and what it can turn intokater field edit --path query_contracts/which_platform_lead_on_conversions.sql --field rank__sum__conversions --list# Rank the platforms from the fewest conversions, and save the changekater field edit --path query_contracts/which_platform_lead_on_conversions.sql --field rank__sum__conversions --set order_direction=asc --write# Change the field's label, step by step in a terminalkater field edit --path query_contracts/conversions_last_month_vs_the_month_before.sql --field previous_month_percent_change__sum__conversions --label "Conversions change"Options
It also takes the global options --json, --kater-root, --scope and --help.
How it works
In a terminal, it asks for each step, and starts from how the field is made now. It shows the field before and after, its Kater SQL and its rows. Anywhere else, or with --json or --no-input, it never asks. --write saves the change.
A field that is not made with an operation is refused. Change its SQL with kater source write.