Skip to main content
On this page

Kater CLI Present and share chart

kater chart read

Shows one saved chart: its title, its spec, its SQL and its revision.

Read a chart before you change it, because each change needs its revision. It changes nothing.

Examples

Terminal window
# Show the spend_mix chart
kater chart read --request-file spend_mix.json
# Keep the chart in a file, to make a change request from it with jq
kater chart read --request-file spend_mix.json --json > spend_mix_read.json

Arguments

ArgumentDescription
<path>Optional. In place of --request-file: the workspace, the query file or the chart file the request names.

Options

OptionDescription
--request-file <file>The chart, as JSON, such as spend_mix.json. Give - to read it from standard input. See The request.

It also takes the global options --json, --kater-root, --scope and --help.

The request

FieldWhat it holds
chartThe chart: its name, and the full path of its workspace under namespace.
spend_mix.json
{"chart": {"name": "spend_mix", "namespace": {"path": "connections/snowflake_prod_connection/workspaces/ad_reporting"}}}

What it shows

The answer holds the chart in definition:

FieldWhat it holds
titleThe title the chart shows: its label, or what it shows, such as “Clicks by Platform”.
pathThe chart’s file, such as connections/snowflake_prod_connection/workspaces/ad_reporting/charts/spend_mix.sql.
revisionThe chart’s revision. A change request gives it as expected_revision.
specThe chart: its name in relation, its query in source, its kind, its encodings and its presentation.
sqlThe SQL that selects the query’s columns for the chart.
planThe same selection as sql, in parts: the columns, the conditions, the order and the limit.
diagnosticsThe problems Kater found in the chart.

See also