Skip to content

Commit 6dd97ce

Browse files
committed
add a comment
1 parent 2232b35 commit 6dd97ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/RestEsqlTestCase.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,6 +1520,10 @@ protected static Map<String, Object> entityToMapNoPartialCheck(HttpEntity entity
15201520
return result;
15211521
}
15221522

1523+
/**
1524+
* Converts the entity to a map and asserts that this is not a partial response (`is_partial` field is absent or `false`).
1525+
* Use {@link #entityToMapNoPartialCheck} if you want to skip this check.
1526+
*/
15231527
protected static Map<String, Object> entityToMap(HttpEntity entity, XContentType expectedContentType) throws IOException {
15241528
return assertNotPartial(entityToMapNoPartialCheck(entity, expectedContentType));
15251529
}

0 commit comments

Comments
 (0)