2
0
Эх сурвалжийг харах

update results to valid value

Signed-off-by: Sean Holcomb <seanholcomb@gmail.com>
Sean Holcomb 2 жил өмнө
parent
commit
cdea9ddbc9

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

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