We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3972d9 commit c2e04ddCopy full SHA for c2e04dd
src/test/java/org/nlpcn/es4sql/AggregationTest.java
@@ -415,7 +415,7 @@ public void groupByOnNestedFieldTest() throws Exception {
415
Terms infos = nested.getAggregations().get("message.info");
416
Assert.assertEquals(3,infos.getBuckets().size());
417
for(Terms.Bucket bucket : infos.getBuckets()) {
418
- String key = bucket.getKey();
+ String key = bucket.getKey().toString();
419
long count = ((ValueCount) bucket.getAggregations().get("COUNT(*)")).getValue();
420
if(key.equalsIgnoreCase("a")) {
421
Assert.assertEquals(2, count);
0 commit comments