Skip to content

Commit

Permalink
Corrected the filter for DIMENSION_VALUE_FIELD (#659)
Browse files Browse the repository at this point in the history
DIMENSION_VALUE_FIELD field was taking DIMENSION_NAME_FIELD which was resulting in 0 results.

Co-authored-by: Jan Miranda <[email protected]>
  • Loading branch information
Abhinav2604 and janmran authored Jan 28, 2022
1 parent 487769c commit 272a355
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private void readMetricSamplesWithConstraint(BlockSpiller blockSpiller, ReadReco

String prevToken;
ValueSet dimensionNameConstraint = request.getConstraints().getSummary().get(DIMENSION_NAME_FIELD);
ValueSet dimensionValueConstraint = request.getConstraints().getSummary().get(DIMENSION_NAME_FIELD);
ValueSet dimensionValueConstraint = request.getConstraints().getSummary().get(DIMENSION_VALUE_FIELD);
do {
prevToken = dataRequest.getNextToken();
GetMetricDataResult result = invoker.invoke(() -> metrics.getMetricData(dataRequest));
Expand Down

0 comments on commit 272a355

Please sign in to comment.