Skip to main content
How-to guideApplies to: Unified engine deployments
Use only HTTP to count and summarize inline data. No files, catalog connection, or credentials are needed.

Query inline orders over HTTP

Expect Books 60, Games 45, and Garden 35. Send each step explicitly. Use the returned session ID in later requests. Replace the placeholders in your client. Keep returned IDs for later requests. Paths below use the native API prefix; adjust it for your deployment.

1. Open a session

From the response, keep session_id from /session_id. Endpoint reference.

2. Submit SQL

Endpoint reference.

3. Follow execution

Repeat this read until /status reaches a terminal state: Succeeded, Failed, Cancelled, OutcomeUnknown, Skipped. Endpoint reference.

4. Read result metadata

Endpoint reference.

5. Fetch rows

Endpoint reference.

6. Close the session

Endpoint reference.

Follow the steps

Open a session and keep its returned ID. Submit the SQL once. Use a unique operation ID and reuse it when recovering the same submission. Read operation status using the status request. Repeat until success or another final outcome. After success, read metadata and fetch one result page. Decode the Arrow response in your client to inspect the rows. Close the session when finished. Closing a session is a server operation; leaving the docs page is not cleanup.

Change the query

On a new submission, add WHERE region = 'North' before GROUP BY. Expect Books 60, Games 15, and Garden 10. Copy the SQL request and use a new operation ID in your own client. Keep the original request unchanged when recovering a lost response.
Last modified on November 4, 2026