Skip to content

Commit c2e04dd

Browse files
committed
after merge - make it compile with 2.0
1 parent a3972d9 commit c2e04dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/nlpcn/es4sql/AggregationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ public void groupByOnNestedFieldTest() throws Exception {
415415
Terms infos = nested.getAggregations().get("message.info");
416416
Assert.assertEquals(3,infos.getBuckets().size());
417417
for(Terms.Bucket bucket : infos.getBuckets()) {
418-
String key = bucket.getKey();
418+
String key = bucket.getKey().toString();
419419
long count = ((ValueCount) bucket.getAggregations().get("COUNT(*)")).getValue();
420420
if(key.equalsIgnoreCase("a")) {
421421
Assert.assertEquals(2, count);

0 commit comments

Comments
 (0)