I've tried my first attempt on using DynamoDB after a long time using relational databases, this is now being done to update test results for later analysis, consider the following table and secondary index

I've been trying to get for a given testName, the test runs in a known range of revisions using the following Java code :
HashMap<String, Condition> scanMap = new HashMap<>();
scanMap.put("revision", new Condition().withComparisonOperator(ComparisonOperator.BETWEEN).withAttributeValueList(Arrays.asList(new AttributeValue("N:"+String.valueOf(minRev)), new AttributeValue("N:"+String.valueOf(maxRev)))));
scanMap.put("testName", new Condition().withComparisonOperator(ComparisonOperator.EQ).withAttributeValueList(new AttributeValue(Collections.singletonList(testName))));
DynamoDBScanExpression scanExpression = new DynamoDBScanExpression().withScanFilter(scanMap);
scanExpression.setIndexName("testName-revision-index");
List<ValidationReport> reports = getMapper().scan(ValidationReport.class, scanExpression);
I've tried to remove the "N:" with no luck. Removing the revision expression altogether return all the test runs with no limitation on the revision range
Any help would be appreciated here