On this page
Kater CLI Explore and try ideas explore card
kater explore card preview
Runs one card on the warehouse and waits for its chart.
While it waits, it reports each change of state. Then it gives the chart’s rows and what they show.
Examples
# Run the card in card.json and wait for its chartkater explore card preview --request-file card.json# Run several cards at once, from cards.jsonkater explore card preview-all --request-file cards.jsonOptions
It also takes the global options --json, --kater-root, --scope and --help.
Where the rows come from
A preview reads the result store first. When anyone ran the same query with the same inputs and its rows are still fresh, those rows come back. Otherwise, the card runs on the warehouse. "refresh": true always runs it again.
States and failures
The progress lines print as the command works, each as the card’s id and its state: queued, compiling, waiting or running. The answer ends as complete, failed or cancelled. A failed preview gives failure, whose code says what went wrong:
compile_refused. The compiler refused the card’s query or chart.diagnosticsgives its reasons.preview_capacityandsnapshot_cache_full. The server is busy. Preview the card again shortly.preview_expired. The result was released before it was read. Preview the card again.preview_timeout. The warehouse ran past the preview’s time limit.dependency_changed. The model changed while the preview ran. Preview the card again.