You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retrieve a persisted query result by ID. If the result is still being processed, only the status is returned. Once ready, the full column and row data is included in the response.
16
+
Retrieve a persisted query result by ID. The response format for the `ready` state is selected by `Accept` header or `?format=` query param; non-ready states use the same status codes and JSON body shape regardless of format.
| not found | 404 `application/json` (`ApiErrorResponse`) |
25
+
26
+
`?format=arrow` (or `?format=json`) takes precedence over `Accept`. Use `?offset=N&limit=M` to slice the result; `offset` defaults to 0 and `limit` is unbounded by default. Both must be non-negative; invalid values return 400. When a finite `limit` doesn't reach the end of the result, a `Link` header with `rel="next"` points at the following page.
27
+
28
+
Ready responses (both formats) carry `X-Total-Row-Count` (full result row count from parquet metadata, independent of offset/limit). The Arrow path streams end-to-end with no spawned task between the parquet reader and the wire — clients can disconnect at any time and the server stops reading.
17
29
18
30
### Example
19
31
@@ -24,6 +36,7 @@ Retrieve a persisted query result by ID. If the result is still being processed,
24
36
```python
25
37
import hotdata
26
38
from hotdata.models.get_result_response import GetResultResponse
39
+
from hotdata.models.results_format_query import ResultsFormatQuery
27
40
from hotdata.rest import ApiException
28
41
from pprint import pprint
29
42
@@ -60,10 +73,13 @@ with hotdata.ApiClient(configuration) as api_client:
60
73
# Create an instance of the API class
61
74
api_instance = hotdata.ResultsApi(api_client)
62
75
id='id_example'# str | Result ID
76
+
offset =56# int | Rows to skip (default: 0) (optional)
77
+
limit =56# int | Maximum rows to return (default: unbounded) (optional)
78
+
format= hotdata.ResultsFormatQuery() # ResultsFormatQuery | `arrow` or `json` — overrides the `Accept` header. (optional)
**200** | Result data. JSON callers receive `GetResultResponse`. Arrow callers receive an Arrow IPC stream — a sequence of IPC messages: schema header, then RecordBatch messages, then EOS. | * Link - RFC 5988 `Link` header with `rel=\"next\"` pointing at the next page when a finite `limit` does not reach the end of the result. <br> * X-Total-Row-Count - Total rows in the full result, ignoring offset/limit. Present only when status is `ready`. <br> |
119
+
**202** | Result is still being computed (`pending` or `processing`). Poll the same URL. | * Retry-After - Suggested seconds before the next poll. <br> |
120
+
**400** | Invalid offset, limit, or format. | - |
121
+
**404** | Result not found. | - |
122
+
**409** | Result computation failed. Body carries `error_message` describing the failure. | - |
101
123
102
124
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
Schema for the `?format=` query parameter on `GET /v1/results/{id}`. Documents the canonical values accepted (`arrow`, `json`). The handler's negotiator (`negotiate_results_format`) is intentionally permissive — case-insensitive, with unknown values falling through to the `Accept` header — so this enum only declares the spec-level contract for clients and SDK generators.
4
+
5
+
## Enum
6
+
7
+
*`ARROW` (value: `'arrow'`)
8
+
9
+
*`JSON` (value: `'json'`)
10
+
11
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
0 commit comments