Skip to main content
On this page

Kater CLI Build an analysis filter

kater filter list

With --json, a key field's condition also carries key: {kind, dataset}.

The filter’s values says typed or listed; its condition’s values is the actual list of values. A plain WHERE condition keeps its own identity key separately.

Lists every filter that holds the rows of a query or a workspace, and each plain WHERE condition, which is always on. For each filter, it shows its name, its label, its home, its switch, its condition in words and its call as its file writes it.

Examples

Terminal window
# Go to the ad_reporting workspace in your local copy of Kater content
cd connections/snowflake_prod_connection/workspaces/ad_reporting
# List the query's filters
kater filter list paid_media_spend_trend
# List the workspace's filters
kater filter list .
# Get each filter as JSON
kater filter list paid_media_spend_trend --json

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.

Options

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

The JSON

With --json, each filter has the same shape: name, label, home, kind, required, on, condition (its field, operation, parameters and values), words, operations (each condition that its field takes, with its flag) and text. A plain WHERE condition has the kind where. A filter written as SQL has the kind sql, and gives its parts in place of a condition.

See also