Skip to content

Commit

Permalink
Adds support for using Query Result Reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-dotnet-automation committed Nov 7, 2022
1 parent 45bfbf5 commit e7afc66
Show file tree
Hide file tree
Showing 28 changed files with 1,334 additions and 465 deletions.
36 changes: 33 additions & 3 deletions generator/ServiceModels/athena/athena-2017-05-18.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@
"output":{"shape":"GetQueryResultsOutput"},
"errors":[
{"shape":"InternalServerException"},
{"shape":"InvalidRequestException"}
{"shape":"InvalidRequestException"},
{"shape":"TooManyRequestsException"}
]
},
"GetQueryRuntimeStatistics":{
Expand Down Expand Up @@ -519,6 +520,11 @@
"S3AclOption":{"shape":"S3AclOption"}
}
},
"Age":{
"type":"integer",
"max":10080,
"min":0
},
"AmazonResourceName":{
"type":"string",
"max":1011,
Expand Down Expand Up @@ -1365,6 +1371,7 @@
"Query":{"shape":"QueryString"},
"StatementType":{"shape":"StatementType"},
"ResultConfiguration":{"shape":"ResultConfiguration"},
"ResultReuseConfiguration":{"shape":"ResultReuseConfiguration"},
"QueryExecutionContext":{"shape":"QueryExecutionContext"},
"Status":{"shape":"QueryExecutionStatus"},
"Statistics":{"shape":"QueryExecutionStatistics"},
Expand Down Expand Up @@ -1415,7 +1422,8 @@
"TotalExecutionTimeInMillis":{"shape":"Long"},
"QueryQueueTimeInMillis":{"shape":"Long"},
"QueryPlanningTimeInMillis":{"shape":"Long"},
"ServiceProcessingTimeInMillis":{"shape":"Long"}
"ServiceProcessingTimeInMillis":{"shape":"Long"},
"ResultReuseInformation":{"shape":"ResultReuseInformation"}
}
},
"QueryExecutionStatus":{
Expand Down Expand Up @@ -1522,6 +1530,27 @@
}
},
"ResultOutputLocation":{"type":"string"},
"ResultReuseByAgeConfiguration":{
"type":"structure",
"required":["Enabled"],
"members":{
"Enabled":{"shape":"Boolean"},
"MaxAgeInMinutes":{"shape":"Age"}
}
},
"ResultReuseConfiguration":{
"type":"structure",
"members":{
"ResultReuseByAgeConfiguration":{"shape":"ResultReuseByAgeConfiguration"}
}
},
"ResultReuseInformation":{
"type":"structure",
"required":["ReusedPreviousResult"],
"members":{
"ReusedPreviousResult":{"shape":"Boolean"}
}
},
"ResultSet":{
"type":"structure",
"members":{
Expand Down Expand Up @@ -1561,7 +1590,8 @@
"QueryExecutionContext":{"shape":"QueryExecutionContext"},
"ResultConfiguration":{"shape":"ResultConfiguration"},
"WorkGroup":{"shape":"WorkGroupName"},
"ExecutionParameters":{"shape":"ExecutionParameters"}
"ExecutionParameters":{"shape":"ExecutionParameters"},
"ResultReuseConfiguration":{"shape":"ResultReuseConfiguration"}
}
},
"StartQueryExecutionOutput":{
Expand Down
29 changes: 28 additions & 1 deletion generator/ServiceModels/athena/athena-2017-05-18.docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@
"ResultConfigurationUpdates$AclConfiguration": "<p>The ACL configuration for the query results.</p>"
}
},
"Age": {
"base": null,
"refs": {
"ResultReuseByAgeConfiguration$MaxAgeInMinutes": "<p>Specifies, in minutes, the maximum age of a previous query result that Athena should consider for reuse. The default is 60.</p>"
}
},
"AmazonResourceName": {
"base": null,
"refs": {
Expand Down Expand Up @@ -104,7 +110,9 @@
"base": null,
"refs": {
"AthenaError$Retryable": "<p>True if the query might succeed if resubmitted.</p>",
"ColumnInfo$CaseSensitive": "<p>Indicates whether values in the column are case-sensitive.</p>"
"ColumnInfo$CaseSensitive": "<p>Indicates whether values in the column are case-sensitive.</p>",
"ResultReuseByAgeConfiguration$Enabled": "<p>True if previous query results can be reused when the query is run; otherwise, false. The default is false.</p>",
"ResultReuseInformation$ReusedPreviousResult": "<p>True if a previous query result was reused; false if the result was generated from a new run of the query.</p>"
}
},
"BoxedBoolean": {
Expand Down Expand Up @@ -970,6 +978,25 @@
"ResultConfigurationUpdates$OutputLocation": "<p>The location in Amazon S3 where your query results are stored, such as <code>s3://path/to/query/bucket/</code>. For more information, see <a href=\"https://docs.aws.amazon.com/athena/latest/ug/querying.html\">Query Results</a> If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup. The \"workgroup settings override\" is specified in <code>EnforceWorkGroupConfiguration</code> (true/false) in the <code>WorkGroupConfiguration</code>. See <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a>.</p>"
}
},
"ResultReuseByAgeConfiguration": {
"base": "<p>Specifies whether previous query results are reused, and if so, their maximum age.</p>",
"refs": {
"ResultReuseConfiguration$ResultReuseByAgeConfiguration": "<p>Specifies whether previous query results are reused, and if so, their maximum age.</p>"
}
},
"ResultReuseConfiguration": {
"base": "<p>Specifies the query result reuse behavior for the query.</p>",
"refs": {
"QueryExecution$ResultReuseConfiguration": "<p>Specifies the query result reuse behavior that was used for the query.</p>",
"StartQueryExecutionInput$ResultReuseConfiguration": "<p>Specifies the query result reuse behavior for the query.</p>"
}
},
"ResultReuseInformation": {
"base": "<p>Contains information about whether the result of a previous query was reused.</p>",
"refs": {
"QueryExecutionStatistics$ResultReuseInformation": "<p>Contains information about whether previous query results were reused for the query.</p>"
}
},
"ResultSet": {
"base": "<p>The metadata and rows that make up a query result set. The metadata describes the column structure and data types. To return a <code>ResultSet</code> object, use <a>GetQueryResults</a>.</p>",
"refs": {
Expand Down
Loading

0 comments on commit e7afc66

Please sign in to comment.