Skip to main content
On this page

Kater CLI Build an analysis query

kater query question

Ask a next question: its query and a chart of it are written in one commit.

A program gives the exact typed request with --request-file.

The request’s fields: namespace (required): {kind?: “workspace”, scope: {kind?: “shared”, connection: text} or {kind?: “personal”, connection: text, user_id: text, topic?}, workspace: text}. fields (required): a list of {field?, of?, expression?, label?, reusable?, kind?, description?, ai_context?, business_questions?, tags?, classification?, style?, highlight?, format?, plain?, lock_in?, operation?, parameters?, sort?, output?}. conditions: a list of {field: text, operation: text, parameters?, required?} or {sql: text, label?, parameters?}. The conditions the rows are held to, as query.new takes them. order: a list of {field?, of?, descending?}. limit: a whole number. kind: The chart the question draws. The chart is written as that kind over the query’s columns where they fill its roles. Any other kind, or none, is the kind that fits the query best, which the page draws as the question asks once its rows come.

Examples

Terminal window
# Ask a next question: its query and a chart of it are written in one commit
kater query question

Arguments

ArgumentDescription
<object>Optional. The workspace: its key, such as duckdb_sample/shop, or in a person’s folder, duckdb_sample/users/<user id>/shop; its name, such as shop; its folder, such as connections/<connection>/workspaces/shop; or its id, rel1_…, also from before a rename. By default the workspace you are in.

Options

OptionDescription
--request-file <file>Typed request JSON file; - reads stdin.

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

See also