Skip to main content
On this page

Kater CLI Build an analysis filter

kater filter name

Makes a plain WHERE condition a REQUIRED_FILTER in its place, as Make it a filter does.

A reader then sees the filter, and an agent can change it with kater filter.

Examples

Terminal window
# Go to the ad_reporting workspace in your local copy of Kater content
cd connections/snowflake_prod_connection/workspaces/ad_reporting
# Make the condition on platform a filter named no_tiktok
kater filter name paid_media_spend_trend "platform <> 'TikTok'" --as no_tiktok --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.
<condition>The plain WHERE condition, by its SQL as kater filter list shows it, or by its key.

Options

OptionDescription
--as <name>The filter’s name. By default it is the field’s name.
--label <text>The filter’s label. By default it is the field’s label.
--writeWrites the filter. 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