Răsfoiți Sursa

Merge pull request #2171 from opencost/sean/add-athena-pagination-2

update results to valid value
Sean Holcomb 2 ani în urmă
părinte
comite
79ccdd7336
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  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), // this is the default value
 	}
 	getQueryResultsPaginator := athena.NewGetQueryResultsPaginator(cli, queryResultsInput)
 	for getQueryResultsPaginator.HasMorePages() {