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
session_id from /session_id.
Endpoint reference.
2. Submit SQL
3. Follow execution
/status reaches a terminal state: Succeeded, Failed, Cancelled, OutcomeUnknown, Skipped.
Endpoint reference.
4. Read result metadata
5. Fetch rows
6. Close the session
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, addWHERE 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.