Browse Source

update results to valid value

Signed-off-by: Sean Holcomb <seanholcomb@gmail.com>
Sean Holcomb 2 years ago
parent
commit
cdea9ddbc9
1 changed files with 1 additions and 2 deletions
  1. 1 2
      pkg/cloud/aws/athenaquerier.go

+ 1 - 2
pkg/cloud/aws/athenaquerier.go

@@ -126,10 +126,9 @@ func (aq *AthenaQuerier) queryAthenaPaginated(ctx context.Context, query string,
 	if err != nil {
 		return fmt.Errorf("QueryAthenaPaginated: query execution error: %s", err.Error())
 	}
-	var maxResults int32 = 10000
 	queryResultsInput := &athena.GetQueryResultsInput{
 		QueryExecutionId: startQueryExecutionOutput.QueryExecutionId,
-		MaxResults:       &maxResults,
+		MaxResults:       aws.Int32(1000),
 	}
 	getQueryResultsPaginator := athena.NewGetQueryResultsPaginator(cli, queryResultsInput)
 	for getQueryResultsPaginator.HasMorePages() {