Statement lifecycle
Detailed sequence diagrams walking through the statement lifecycle, step by step.
This is the visual deep dive into the same async pipeline described in Query lifecycle. REST, Semantic SQL, the Metric API, and Source SQL share it; GraphQL usually returns inline data but falls back to it for long-running requests.
For the endpoint reference, request/response shapes, strategy and status tables, fetch formats, staleness handling, and retry semantics, see Query lifecycle. This page assumes that reference and focuses on how the components talk to each other at each step, as sequence diagrams.
Every async submit returns 202 Accepted immediately. Poll for status, then fetch the result.
Standard flow
Error path
Deduplication
(Strategy and status meanings: see the tables in Query lifecycle.)
GraphQL timeout path
Submit paths
Source SQL
POST /api/v1/query/statement
Semantic REST
POST /api/v1/query/semantic/rest
Semantic SQL
POST /api/v1/query/semantic/sql
Metric API
GET or POST /api/v1/query/metric/{name}
GraphQL
POST /api/v1/query/semantic/graphql
This table adds the GraphQL submit path on top of Query lifecycle's submit table, since GraphQL is the one method with a fallback into this same pipeline.
Poll: GET /api/v1/query/statement/{id}. Fetch: GET /api/v1/query/statement/{id}/result (format=json|csv|yaml|parquet; see Query lifecycle for behavior per format, and Handle staleness for the Is-Stale header).
Last updated
Was this helpful?