Get Statement Result
redshiftdataapiservice_get_statement_result | R Documentation |
Fetches the temporarily cached result of an SQL statement¶
Description¶
Fetches the temporarily cached result of an SQL statement. A token is returned to page through the statement results.
For more information about the Amazon Redshift Data API and CLI usage examples, see Using the Amazon Redshift Data API in the Amazon Redshift Management Guide.
Usage¶
Arguments¶
Id
[required] The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates then number of the SQL statement. For example,
d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of:2
that indicates the second SQL statement of a batch query. This identifier is returned byBatchExecuteStatment
,ExecuteStatment
, andlist_statements
.NextToken
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
Value¶
A list with the following syntax:
list(
ColumnMetadata = list(
list(
columnDefault = "string",
isCaseSensitive = TRUE|FALSE,
isCurrency = TRUE|FALSE,
isSigned = TRUE|FALSE,
label = "string",
length = 123,
name = "string",
nullable = 123,
precision = 123,
scale = 123,
schemaName = "string",
tableName = "string",
typeName = "string"
)
),
NextToken = "string",
Records = list(
list(
list(
blobValue = raw,
booleanValue = TRUE|FALSE,
doubleValue = 123.0,
isNull = TRUE|FALSE,
longValue = 123,
stringValue = "string"
)
)
),
TotalNumRows = 123
)