get_query_result_stream
async
¶
get_query_result_stream(
query_execution_id: QueryExecutionId,
*,
config_overrides: Optional[AsyncAthenaClientConfig] = None,
range: Optional[RangeHeaderString] = None,
) -> AsyncGenerator[GetQueryResultStreamOutput]
Returns query results as a raw binary stream for a single query execution specified by QueryExecutionId. Streams the raw result data in Apache Arrow Inter-Process Communication (IPC) Stream format without transformation. Use StartQueryExecution to run a query.
Parameters:
-
query_execution_id(QueryExecutionId) –The unique ID of the query execution.
-
range(Optional[RangeHeaderString], default:None) –An optional byte range header. Format:
bytes=N-M. When specified, returns HTTP 206 with the requested byte slice.
Raises:
-
InternalServerException–Indicates a platform issue, which may be due to a transient condition or outage.
-
InvalidRequestException–Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range.
-
RangeNotSatisfiableException–The byte range specified in the
Rangeheader cannot be satisfied for the query result. Returned with HTTP status code 416. -
TooManyRequestsException–Indicates that the request was throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_athena/_services/async_athena.py
2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 | |