Nova API — /api/catalog
The operations Nova tags public under /api/catalog. Generated from reference-src/nova-openapi.json.
GET /api/catalog/catalogs
Operation id catalogs_list: in Python client.call("catalogs_list", …), on the command line stardelt api catalogs_list.
The catalogs the caller may browse, each with its Lakekeeper warehouse id and its medallion layer when it has one, plus the catalog a request without ?catalog= uses. Its owner is spec.owner of the catalog's Catalog resource and description is spec.description (null without a resource); grants is spec.grants in declared order — one group and one verb (browse, select, write, create, manage) each — and empty when the catalog declares none, so a member can see whose data it is and which groups may read or write it. The order is bronze, silver, gold first (in that order), then the rest alphabetically; layer is stardelt.io/layer from the catalog's Catalog resource, else the catalog's own name when that is bronze, silver or gold, and absent otherwise; environment is production when the resource carries stardelt.io/environment: production, and absent otherwise. The list is what the engine's SHOW CATALOGS shows the caller (through the caller's own token), minus the engine's own catalogs (system, information_schema, memory, tpch, tpcds, jmx); it is cached for 30 s (the layer for 60 s; the owner and grants are read on every request). Every other /api/catalog/* route takes the same ?catalog=; a catalog the caller may not browse answers 403 there and is never proxied. Empty when no catalog is open to the caller.
Responses
| Code | Description |
|---|---|
200 | The browsable catalogs and the default one |
401 | Not signed in |
502 | The query engine or the catalog is not reachable |
503 | A catalog the engine lists has no warehouse |
GET /api/catalog/evals
Operation id catalog_eval_list: in Python client.call("catalog_eval_list", …), on the command line stardelt api catalog_eval_list.
GET /api/catalog/evals — the catalog's evals, in id order.
The evals of one catalog: questions with a known answer, kept as catalog context. A question may appear twice. In id order. Each eval carries its newest run as lastRun (null when it never ran). ?catalog= picks the catalog; the caller must be able to browse it, and without a state store the route answers 503.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
Responses
| Code | Description |
|---|---|
200 | The catalog's evals, in id order |
400 | The catalog name is invalid |
401 | Not signed in |
403 | The caller may not browse that catalog |
404 | No such catalog |
502 | The catalog is not reachable or did not answer |
503 | The state store is not configured |
POST /api/catalog/evals
Operation id catalog_eval_create: in Python client.call("catalog_eval_create", …), on the command line stardelt api catalog_eval_create.
POST /api/catalog/evals — 201 with the stored row.
Store one eval: a question (1 to 500 characters) and its known answer, {"kind":"rows","rows":[[…],…]} (1 to 100 rows of 1 to 50 scalars, a string at most 500 characters), {"kind":"value","value":<scalar>}, or {"kind":"uses","tables":["namespace.table", …]} (1 to 10 names). Only a member of ownerGroup or an administrator may write one; the caller is recorded as createdBy. The eval is stored, never executed. There is no update route: changing an eval is delete and create. ?catalog= picks the catalog.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
Request body
| Field | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|
expected | any | Yes | The known answer: {"kind":"rows",…}, {"kind":"value",…} or {"kind":"uses",…}. | ||
ownerGroup | string | Yes | The group that owns the eval. | ||
question | string | Yes | The question, 1 to 500 characters. |
Responses
| Code | Description |
|---|---|
201 | The stored row |
400 | The question, the owner group or the expected answer is not in the accepted shape, or the catalog name is invalid |
401 | Not signed in |
403 | The caller may not browse that catalog, or only a member of the owner group or an administrator may write an eval |
404 | No such catalog |
502 | The catalog is not reachable or did not answer |
503 | The state store is not configured |
GET /api/catalog/health
Operation id catalog_health_list: in Python client.call("catalog_health_list", …), on the command line stardelt api catalog_health_list.
Every table of one catalog that carries a freshness promise, the most broken first: red, then amber, then green, and inside one status by namespace.name. The list is the answer table_health gives for one table, applied to every table the catalog lists; the promise is the Iceberg property stardelt.freshness. ?catalog= picks the catalog. Views are not listed (they cannot carry the property), and a table that vanished between the list and the read is skipped. A table without a promise is not listed. checked is how many tables were read; the list stops after 200 tables, so a larger catalog answers a prefix, and it evaluates the checkPipeline of at most 20 promised tables per call, worst first; a table beyond the cap answers its freshness verdict only. The interim rule is enforced by Nova: canEdit says whether this caller may set a table's promise.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
Responses
| Code | Description |
|---|---|
200 | The promised tables, worst first |
400 | The catalog name is invalid |
401 | Not signed in |
403 | The caller may not browse that catalog |
404 | No such catalog |
502 | The catalog is not reachable or did not answer |
GET /api/catalog/metrics
Operation id catalog_metrics_get: in Python client.call("catalog_metrics_get", …), on the command line stardelt api catalog_metrics_get.
What is in each catalog the caller may browse: schemas, tables, rows, bytes on the object store and the newest commit, plus the sums. Rows are ordered bronze, silver, gold first, then by name, and carry layer when the catalog is one of the three (the stardelt.io/layer label, else the catalog's own name). The catalog list is the caller's own SHOW CATALOGS (GET /api/catalog/catalogs); a catalog the caller may not browse is never read and never appears. The numbers come from the catalog's Iceberg metadata (the current snapshot's total-records and total-files-size), so the endpoint runs no query, and they are read in the background every five minutes (NOVA_METRICS_REFRESH_SECS): a request answers from the last numbers at once, whatever their age, and updatedAt says when they were read. A catalog with no numbers yet is answered with zeros and pending: true while one background scan reads it; totals leave pending rows out. At most 200 tables per catalog are loaded: truncated says the rows and bytes are a sample while tables stays exact. A catalog whose scan failed keeps its last numbers and carries an error sentence (zeros for one that never answered); only an unreachable engine or catalog fails the request with 502. 403 when no catalog is open to the caller. Never cached by the client.
Responses
| Code | Description |
|---|---|
200 | One entry per browsable catalog, medallion layers first, then by name, with the totals |
401 | Not signed in |
403 | No catalog is open to the caller |
502 | The query engine is not reachable, so the catalogs cannot be named |
POST /api/catalog/metrics/refresh
Operation id catalog_metrics_refresh: in Python client.call("catalog_metrics_refresh", …), on the command line stardelt api catalog_metrics_refresh.
Read every catalog again now, instead of waiting for the next background round (every five minutes). Administrator only: it is an operator action on the whole warehouse, and main puts the same require_admin in front of it as /api/apps, so a non-administrator answers 403. Answers 202 — the round runs in the background, one at a time, and the page reads the new numbers with its next GET /api/catalog/metrics. At most one per minute: a second call answers 429 with the sentence the numbers were refreshed less than a minute ago.
Responses
| Code | Description |
|---|---|
202 | The round is running; the numbers follow on the next read |
401 | Not signed in |
403 | Not an administrator |
429 | The numbers were refreshed less than a minute ago |
GET /api/catalog/namespaces
Operation id namespaces_list: in Python client.call("namespaces_list", …), on the command line stardelt api namespaces_list.
List one catalog's namespaces (schemas). Each namespace is a list of levels. ?catalog= picks the catalog; omitted, the default one is used. A catalog the caller may not browse answers 403, a name no catalog knows 404.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
Responses
| Code | Description |
|---|---|
200 | Namespaces in the catalog |
400 | The catalog name is not lower-case letters and digits |
401 | Not signed in |
403 | The caller may not browse that catalog |
404 | No such catalog |
502 | The catalog or the engine is not reachable |
503 | The configured warehouse does not exist |
GET /api/catalog/namespaces/{ns}/tables
Operation id tables_list: in Python client.call("tables_list", …), on the command line stardelt api tables_list.
List tables in one namespace of one catalog. ?catalog= picks the catalog; omitted, the default one is used.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
ns | path | string | Yes | Namespace (schema) name |
Responses
| Code | Description |
|---|---|
200 | Table identifiers in the namespace |
400 | The name is not a single path segment, or the catalog name is invalid |
401 | Not signed in |
403 | The caller may not browse that catalog |
404 | No such catalog |
502 | The catalog or the engine is not reachable |
GET /api/catalog/products
Operation id catalog_products: in Python client.call("catalog_products", …), on the command line stardelt api catalog_products.
The data products of one catalog: every documented table that carries stardelt.lifecycle (draft, published or deprecated), with its owner, domain, description and replacement, with the number of distinct readers in the last 30 days (the query log; 0 when nobody read it). ?domain= narrows to one domain, exactly and case-sensitively. The answer comes from Nova's documentation index, which is written on every documentation edit through Nova; an edit made directly in the catalog does not refresh it until the next Nova edit of that table. At most 500 products, in domain order (tables without a domain last), then namespace and table.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | The catalog to read; omitted, the default one |
domain | query | string | No | Only products of this stardelt.domain |
Responses
| Code | Description |
|---|---|
200 | The catalog's data products |
401 | Not signed in |
403 | The caller may not browse that catalog |
503 | The state store is not configured |
GET /api/catalog/search
Operation id catalog_search: in Python client.call("catalog_search", …), on the command line stardelt api catalog_search.
Find tables in one catalog. q is one or more words; a table matches when its namespace.table contains every word, in any case, or when one of its documented fields (the description, a tag, the owner, the domain) contains every word — a table found both ways appears once. tag, owner and domain narrow the answer to documented tables: a table without a documentation row has no tag, owner or domain, so it is not shown. Those three filters need the state store and answer 503 without it. The catalog's namespaces and tables are listed the way namespaces_list and tables_list list them, so the answer shows only what the caller may browse; only single-level namespaces are searched. ?catalog= picks the catalog; omitted, the default one is used. At most 100 namespaces are read per request: truncated says when the answer is a prefix.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to search (warehouse, finance, …). Omitted, the default catalog is used. |
domain | query | string | No | Only tables in this domain (exact, lowercase). |
limit | query | integer | No | Most matches to return, 1 to 100; 20 when omitted. |
owner | query | string | No | Only tables whose owner is this group. |
q | query | string | No | Words to look for in namespace.table, separated by spaces; every word must be there. 1 to 100 characters. |
tag | query | string | No | Only tables carrying this tag (exact, lowercase). |
Responses
| Code | Description |
|---|---|
200 | The matching tables |
400 | q is missing or longer than 100 characters, a filter is blank or longer than 64 characters, or the catalog name is invalid |
401 | Not signed in |
403 | The caller may not browse that catalog |
404 | No such catalog |
502 | The catalog or the engine is not reachable |
503 | A tag, owner or domain filter was given and the state store is disabled |
GET /api/catalog/tables/{ns}/{tbl}
Operation id table_metadata: in Python client.call("table_metadata", …), on the command line stardelt api table_metadata.
Iceberg metadata for one table (metadata location plus the metadata document). ?catalog= picks the catalog; omitted, the default one is used.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
ns | path | string | Yes | Namespace (schema) name |
tbl | path | string | Yes | Table name |
Responses
| Code | Description |
|---|---|
200 | The table metadata document |
400 | A name is not a single path segment, or the catalog name is invalid |
401 | Not signed in |
403 | The caller may not browse that catalog |
404 | No such catalog or no such table |
502 | The catalog or the engine is not reachable |
PUT /api/catalog/tables/{ns}/{tbl}/columns/{column}/description
Operation id column_description_update: in Python client.call("column_description_update", …), on the command line stardelt api column_description_update.
Set or remove one column's description. The column must be a field of the current schema, matched exactly. Nova runs COMMENT ON COLUMN <catalog>.<ns>.<tbl>.<column> through Trino as the caller (source nova-catalog), because a column description lives in a new Iceberg schema and only the engine writes it. ?catalog= picks the catalog. Same 4,000-character limit and null rule as the table description. The interim rule is enforced by Nova; the catalog does not enforce it yet.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
column | path | string | Yes | Column name, exactly as the current schema spells it |
ns | path | string | Yes | Namespace (schema) name |
tbl | path | string | Yes | Table name |
Request body
| Field | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|
description | string (nullable) | No | New column description (null removes it). |
Responses
| Code | Description |
|---|---|
200 | The table's documentation after the change, freshly loaded |
400 | The body is invalid, or the catalog name is invalid |
401 | Not signed in |
403 | The caller may not browse that catalog, or only the owner group and administrators may edit |
404 | No such catalog, no such table or no such column in the current schema |
502 | The catalog or the engine is not reachable |
GET /api/catalog/tables/{ns}/{tbl}/documentation
Operation id table_documentation_get: in Python client.call("table_documentation_get", …), on the command line stardelt api table_documentation_get.
A table's documentation: the Iceberg comment as description, the stardelt.tags/stardelt.owner/stardelt.domain/stardelt.guide custom properties, and the description and type of every column of the current schema. stardelt.guide is a guide in plain text or Markdown, at most 16000 characters: how to use the table. stardelt.lifecycle is draft, published or deprecated (a data product's life), and stardelt.replaced-by names the table that replaces a deprecated one. ?catalog= picks the catalog. canEdit/editRule apply Nova's interim rule: until the catalog enforces permissions, Nova decides who may edit, and anyone who reaches Lakekeeper or Trino directly can still change these properties.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
ns | path | string | Yes | Namespace (schema) name |
tbl | path | string | Yes | Table name |
Responses
| Code | Description |
|---|---|
200 | The table's documentation |
400 | A name is not a single path segment, or the catalog name is invalid |
401 | Not signed in |
403 | The caller may not browse that catalog |
404 | No such catalog or no such table |
502 | The catalog is not reachable or did not answer |
PUT /api/catalog/tables/{ns}/{tbl}/documentation
Operation id table_documentation_update: in Python client.call("table_documentation_update", …), on the command line stardelt api table_documentation_update.
Set or remove a table's description, tags, owner, domain and guide in one Lakekeeper commit. ?catalog= picks the catalog. Every key is optional: absent changes nothing, null (or an empty tag list, or a blank description or guide) removes the property, and a write with nothing to change sends no commit. Description at most 4,000 characters; guide at most 16,000 characters and keeps its line breaks; at most 20 unique tags ^[a-z0-9][a-z0-9_-]{0,31}$; owner a group name; domain ^[a-z0-9][a-z0-9_-]{0,39}$. lifecycle is draft, published or deprecated; replacedBy is catalog.schema.table and only on a deprecated table. Publishing needs an owner, a description and a domain, and is refused with 409 while one of the table's verified queries failed its last check; a table with no verified query can publish. The check is only made when the lifecycle enters published, so a published table can still be edited. An ownerless table may be edited by anybody, but the request must then set owner to one of the caller's own groups. The interim rule is enforced by Nova; the catalog does not enforce it yet — anyone who reaches Lakekeeper or Trino directly can still change these properties. Edits of one table are serialised by Nova and a contended commit is retried; a catalog that stays busy answers 502 the catalog is busy, try again.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
ns | path | string | Yes | Namespace (schema) name |
tbl | path | string | Yes | Table name |
Request body
| Field | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|
columnClasses | object (map of string) (nullable) | No | Replaces every column class (null or {} removes them all); absent changes nothing. | ||
description | string (nullable) | No | New table description (null removes it). | ||
domain | string (nullable) | No | New domain (null removes it). | ||
guide | string (nullable) | No | New guide (null or blank removes it). | ||
lifecycle | string (nullable) | No | New lifecycle (draft, published or deprecated; null removes it). | ||
owner | string (nullable) | No | New owner group (null removes it). | ||
replacedBy | string (nullable) | No | The table that replaces this one (catalog.schema.table; null removes it). | ||
tags | array of string (nullable) | No | New tag list (null or [] removes them). |
Responses
| Code | Description |
|---|---|
200 | The documentation after the change, freshly loaded |
400 | The body is invalid, the catalog name is invalid, or the table has no owner and this request does not claim it |
401 | Not signed in |
403 | The caller may not browse that catalog, or only the owner group and administrators may edit |
404 | No such catalog or no such table |
409 | The table cannot be published while one of its verified queries fails its last check |
502 | The catalog is not reachable, did not answer, or stayed busy |
GET /api/catalog/tables/{ns}/{tbl}/health
Operation id table_freshness_get: in Python client.call("table_freshness_get", …), on the command line stardelt api table_freshness_get.
Whether this table's data is as fresh as its owner promised. The promise is the Iceberg table property stardelt.freshness, a JSON object {"by":"07:00","timezone":"Europe/Berlin","graceMinutes":60,"setAt":"2026-11-25T06:00:00Z"}: a wall-clock deadline in an IANA zone, a grace period of 0 to 1440 minutes (default 60) and the moment the promise was set. ?catalog= picks the catalog. status is grey when the table has no promise (or one that does not parse — never an error), green when the newest commit (else setAt) is at or after the most recent deadline, amber while now is still inside the grace after that deadline, and red once the grace has passed. lastWrite is the newest commit's time and dueAt/nextDueAt the most recent and the next deadline. A wall clock the zone skips at a DST jump is not a deadline. The interim rule is enforced by Nova: canEdit says whether this caller may set the promise. checks names the verified queries whose last check failed (null when no state store is configured). checkPipeline is <namespace>/<name>; the read evaluates its newest completed run's failed quality checks (severity error) and dbt tests that name this table, and a failure answers status: red with pipelineChecks.failed naming them; the list route (GET /api/catalog/health) evaluates at most 20 promised tables per call, worst first, and a table beyond the cap answers its freshness verdict only.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
ns | path | string | Yes | Namespace (schema) name |
tbl | path | string | Yes | Table name |
Responses
| Code | Description |
|---|---|
200 | The table's freshness at the moment of the read |
400 | A name is not a single path segment, or the catalog name is invalid |
401 | Not signed in |
403 | The caller may not browse that catalog |
404 | No such catalog or no such table |
502 | The catalog is not reachable or did not answer |
PUT /api/catalog/tables/{ns}/{tbl}/health
Operation id table_freshness_update: in Python client.call("table_freshness_update", …), on the command line stardelt api table_freshness_update.
Set or remove a table's freshness promise, stored as the Iceberg property stardelt.freshness ({"by":"07:00","timezone":"Europe/Berlin","graceMinutes":60,"setAt":"..."}). ?catalog= picks the catalog. by is required: a 24-hour clock time HH:MM names a deadline, null removes the promise. A deadline needs an IANA timezone; graceMinutes is 0 to 1440 and defaults to 60. Removing a promise takes only by: null. A write with nothing to change sends no commit and answers the current status. The promise travels with the table, so any engine can read it; Nova evaluates it when the status is read. The interim rule is enforced by Nova: the catalog does not enforce it yet, and anyone who reaches Lakekeeper or Trino directly can still change the property.. checkPipeline is <namespace>/<name>; the read evaluates its newest completed run's failed quality checks (severity error) and dbt tests that name this table, and a failure answers status: red with pipelineChecks.failed naming them; the list route (GET /api/catalog/health) evaluates at most 20 promised tables per call, worst first, and a table beyond the cap answers its freshness verdict only.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
ns | path | string | Yes | Namespace (schema) name |
tbl | path | string | Yes | Table name |
Request body
| Field | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|
by | string (nullable) | No | The deadline (null removes the promise). | ||
checkPipeline | string (nullable) | No | The pipeline whose checks must pass; absent or empty removes it. | ||
graceMinutes | integer (nullable) | No | How long after the deadline the table is still amber (0 to 1440, default 60). | min 0; format int32 | |
notify | array of string (nullable) | No | The alert destinations; absent or empty means no alert. Replaces the stored list. | ||
timezone | string (nullable) | No | The IANA zone of the deadline; required with a deadline. |
Responses
| Code | Description |
|---|---|
200 | The table's freshness after the change, freshly loaded |
400 | The body is invalid, the catalog name is invalid, or the table has no owner and this request does not claim it |
401 | Not signed in |
403 | The caller may not browse that catalog, or only the owner group and administrators may edit |
404 | No such catalog or no such table |
502 | The catalog is not reachable, did not answer, or stayed busy |
GET /api/catalog/tables/{ns}/{tbl}/history
Operation id table_history: in Python client.call("table_history", …), on the command line stardelt api table_history.
The table's last 100 snapshots, newest first: committed_at, snapshot_id, parent_id, operation, summary. Snapshot and parent ids are strings so that all 64 bits survive JSON in a browser.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
ns | path | string | Yes | Namespace (schema) name |
tbl | path | string | Yes | Table name |
Responses
| Code | Description |
|---|---|
200 | One row per snapshot |
400 | A name is not a single path segment, or the engine refused the statement |
401 | Not signed in |
403 | The caller may not browse that catalog |
404 | No such catalog |
502 | The catalog or the engine is not reachable |
GET /api/catalog/tables/{ns}/{tbl}/metrics
Operation id metric_definitions_list: in Python client.call("metric_definitions_list", …), on the command line stardelt api metric_definitions_list.
GET /api/catalog/tables/{ns}/{tbl}/metrics — the table's, in name order.
The metric definitions of one table: named numbers its owners declared over its columns, with the SQL expression that computes each, an optional time column and the dimensions it may be cut by. A definition is stored, never executed, by this API. In name order, no pagination: a table with more than 50 metrics is not a shape this milestone meets. A table the caller may not see answers what the documentation route answers. ?catalog= picks the catalog.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
ns | path | string | Yes | Namespace (schema) name |
tbl | path | string | Yes | Table name |
Responses
| Code | Description |
|---|---|
200 | The table's metric definitions, in name order |
400 | A name is not a single path segment, or the catalog name is invalid |
401 | Not signed in |
403 | The caller may not browse that catalog |
404 | No such catalog or no such table |
502 | The catalog is not reachable or did not answer |
503 | The state store is not configured |
POST /api/catalog/tables/{ns}/{tbl}/metrics
Operation id metric_definitions_create: in Python client.call("metric_definitions_create", …), on the command line stardelt api metric_definitions_create.
POST /api/catalog/tables/{ns}/{tbl}/metrics — 201 with the stored row.
Declare one metric of this table: a name (lower-case letters, digits and underscores, at most 64), a description (1 to 500 characters), the SQL expression that computes it (at most 2000 characters, no semicolon and no comment), an optional time column and up to 10 distinct dimensions. The expression is stored, never executed: it is the owner's assertion. Only the owner group of the table and administrators may add one; the caller is recorded as verifiedBy. ?catalog= picks the catalog.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
ns | path | string | Yes | Namespace (schema) name |
tbl | path | string | Yes | Table name |
Request body
| Field | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|
description | string | Yes | |||
dimensions | array of string | No | |||
expression | string | Yes | |||
name | string | Yes | |||
timeColumn | string (nullable) | No |
Responses
| Code | Description |
|---|---|
201 | The stored row |
400 | The name, description, expression, timeColumn or dimensions are not in the accepted shape, or the catalog name is invalid |
401 | Not signed in |
403 | The caller may not browse that catalog, or only the owner group and administrators may add a metric definition |
404 | No such catalog or no such table |
502 | The catalog is not reachable or did not answer |
503 | The state store is not configured |
POST /api/catalog/tables/{ns}/{tbl}/rollback
Operation id table_rollback: in Python client.call("table_rollback", …), on the command line stardelt api table_rollback.
Move the table's current pointer back to an earlier snapshot (ALTER TABLE … EXECUTE rollback_to_snapshot), run as the caller, so the engine's permissions decide. Nothing is deleted: the newer snapshots stay until they are expired. Only the catalog owner group or an administrator may roll back; others are refused with that sentence before the engine is called.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
ns | path | string | Yes | Namespace (schema) name |
tbl | path | string | Yes | Table name |
Request body
| Field | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|
snapshot_id | string | Yes | The snapshot to return to, as a string of digits (an Iceberg id has 64 bits; a JSON number is accepted too but a browser rounds it). |
Responses
| Code | Description |
|---|---|
200 | The engine's answer to the statement |
400 | A name or the body is not valid, the snapshot is unknown, or the engine refused the statement |
401 | Not signed in |
403 | Only the catalog owner group or administrators may roll back |
404 | No such catalog |
502 | The catalog or the engine is not reachable |
GET /api/catalog/tables/{ns}/{tbl}/verified-queries
Operation id verified_queries_list: in Python client.call("verified_queries_list", …), on the command line stardelt api verified_queries_list.
GET /api/catalog/tables/{ns}/{tbl}/verified-queries — the table's, newest first.
The verified queries of one table: questions its owners answered with one read-only statement, who verified each and when, its expected result and the last check's outcome. Newest first, at most 50. A table the caller may not see answers what the documentation route answers. ?catalog= picks the catalog.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
ns | path | string | Yes | Namespace (schema) name |
tbl | path | string | Yes | Table name |
Responses
| Code | Description |
|---|---|
200 | The table's verified queries, newest first |
400 | A name is not a single path segment, or the catalog name is invalid |
401 | Not signed in |
403 | The caller may not browse that catalog |
404 | No such catalog or no such table |
502 | The catalog is not reachable or did not answer |
503 | The state store is not configured |
POST /api/catalog/tables/{ns}/{tbl}/verified-queries
Operation id verified_queries_create: in Python client.call("verified_queries_create", …), on the command line stardelt api verified_queries_create.
POST /api/catalog/tables/{ns}/{tbl}/verified-queries — 201 with the stored row.
Verify one answer to a question about this table: the question (at most 500 characters), one read-only statement (at most 20 000) and, optionally, the known answer as up to 100 rows of values. Only the owner group of the table and administrators may add one; the caller is recorded as verifiedBy. The statement is checked on create and run only by POST /api/verified-queries/{id}/check. ?catalog= picks the catalog.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
ns | path | string | Yes | Namespace (schema) name |
tbl | path | string | Yes | Table name |
Request body
| Field | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|
expected | array of array of object (nullable) | No | The known answer: up to 100 rows, each an array of values, or absent. | ||
question | string | Yes | The question, at most 500 characters. | ||
sql | string | Yes | One read-only statement, at most 20 000 characters. |
Responses
| Code | Description |
|---|---|
201 | The stored row |
400 | The question or the SQL is empty or too long, expected is not a list of at most 100 rows, the catalog name is invalid, or the statement is not one read-only statement |
401 | Not signed in |
403 | The caller may not browse that catalog, or only the owner group and administrators may verify a query |
404 | No such catalog or no such table |
502 | The catalog is not reachable or did not answer |
503 | The state store is not configured |
POST /api/catalog/tables/{ns}/{tbl}/verified-queries/check
Operation id verified_queries_check_all: in Python client.call("verified_queries_check_all", …), on the command line stardelt api verified_queries_check_all.
POST /api/catalog/tables/{ns}/{tbl}/verified-queries/check — run every verified query of one table as the caller, one after another, and answer the totals.
Run every verified query of one table as the caller, one after another, in id order and at most 50, and answer how many were checked, how many passed and how many failed, with the rows as the checks left them. Each row is checked exactly as POST /api/verified-queries/{id}/check checks it; a scheduled job calls this once instead of once per query. A table the caller may not see answers what the documentation route answers. ?catalog= picks the catalog.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | query | string | No | Catalog to work in (warehouse, finance, …). Omitted, the default catalog is used. |
ns | path | string | Yes | Namespace (schema) name |
tbl | path | string | Yes | Table name |
Responses
| Code | Description |
|---|---|
200 | The totals and the rows the checks left |
400 | A name is not a single path segment, the catalog name is invalid, or a stored statement is no longer one read-only statement |
401 | Not signed in |
403 | The caller may not browse that catalog |
404 | No such catalog or no such table |
502 | The catalog is not reachable or did not answer |
503 | The state store is not configured |
GET /api/catalog/warehouse
Operation id warehouse_info: in Python client.call("warehouse_info", …), on the command line stardelt api warehouse_info.
The resolved warehouse name and id.
Responses
| Code | Description |
|---|---|
200 | Warehouse name and id |
401 | Not signed in |
502 | The catalog is not reachable |
503 | The configured warehouse does not exist |