Streams the results of a single query execution specified by QueryExecutionId from the Athena query results location in Amazon S3
Source:R/athena_operations.R
athena_get_query_results.RdStreams the results of a single query execution specified by QueryExecutionId from the Athena query results location in Amazon S3. For more information, see Working with query results, recent queries, and output files in the Amazon Athena User Guide. This request does not execute the query but returns results. Use start_query_execution to run a query.
See https://www.paws-r-sdk.com/docs/athena_get_query_results/ for full documentation.
Usage
athena_get_query_results(
QueryExecutionId,
NextToken = NULL,
MaxResults = NULL,
QueryResultType = NULL
)Arguments
- QueryExecutionId
[required] The unique ID of the query execution.
- NextToken
A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.- MaxResults
The maximum number of results (rows) to return in this request.
- QueryResultType
When you set this to
DATA_ROWSor empty,get_query_resultsreturns the query results in rows. If set toDATA_MANIFEST, it returns the manifest file in rows. Only the query typesCREATE TABLE AS SELECT,UNLOAD, andINSERTcan generate a manifest file. If you useDATA_MANIFESTfor other query types, the query will fail.