Skip to main content
On this page

Kater CLI Build an analysis filter

kater filter change

Writes another condition, or the same condition on another field, under the filter's name and in its place, as Save as default does.

The filter’s label, its switch and its comments stay.

Examples

Terminal window
# Go to the ad_reporting workspace in your local copy of Kater content
cd connections/snowflake_prod_connection/workspaces/ad_reporting
# Hold the date filter to the last 6 complete months
kater filter change paid_media_spend_trend is_within_last__union__date_day --is-within-last 6 month --complete --write
# Keep every platform but Meta
kater filter change paid_media_spend_trend platform --is-not-one-of Meta --write

Arguments

ArgumentDescription
<place>The query, as <workspace>/<name>, its key or its id, or the workspace, by its folder, its key or its id. Never a file.
<name>The filter’s name, as kater filter list shows it.

Options

OptionDescription
--field <field>Another field for the filter. By default it is the field that the filter reads now.
--allow-unseenKeeps values that no row holds yet.
--completeWith --is-within-last: complete periods only.
--writeWrites the change. Without it, the command shows the SQL that it writes, as a diff, and what it reaches.

It also takes the global options anywhere on the line, and --help.

See also