On this page
Kater CLI Present and share chart
kater chart snapshot
Gets the rows that the last run of a query kept, for the same inputs, to draw charts from.
It does not run the query, so run it first with kater run. When no rows are kept, Kater refuses with snapshot_unavailable.
Examples
# Run the spend_by_platform query on the warehousekater run --select connections/snowflake_prod_connection/workspaces/ad_reporting/query_contracts/spend_by_platform.sql# Get the rows that the run keptkater chart snapshot --request-file spend_by_platform.jsonArguments
Options
It also takes the global options --json, --kater-root, --scope and --help.
The request
| Field | What it holds |
|---|---|
source | The query: its name, and the full path of its workspace under namespace. |
inputs | Optional. The parameter values and the filters of the run to read. They must be the same as the run’s. |
own_filters | Optional. True reads the run that had the query’s own optional filters on, as kater chart execute with own_filters and a dashboard tile run it. |
{"source": {"name": "spend_by_platform", "namespace": {"path": "connections/snowflake_prod_connection/workspaces/ad_reporting"}}}What it shows
The answer’s snapshot holds the rows, with an id. kater chart preview takes that id as snapshot_id, to draw a chart from these rows. You need permission to run the query.