get_query_result_stream
¶
get_query_result_stream(
query_execution_id: QueryExecutionId,
*,
config_overrides: Optional[AthenaClientConfig] = None,
range: Optional[RangeHeaderString] = None,
) -> Generator[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/athena.py
2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 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 | |