File tree Expand file tree Collapse file tree
opensearch/src/main/java/org/opensearch/sql/opensearch/request Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -222,14 +222,14 @@ public void pushDownFilterForCalcite(QueryBuilder query) {
222222 * Push down aggregation to DSL request.
223223 *
224224 * @param builderAndParser pair of aggregation query and aggregation parser.
225- * @param having indicates there is a HAVING after aggregation.
225+ * @param hasHavingClause indicates there is a HAVING clause after aggregation.
226226 */
227227 public void pushDownAggregation (
228228 Pair <List <AggregationBuilder >, OpenSearchAggregationResponseParser > builderAndParser ,
229- boolean having ) {
229+ boolean hasHavingClause ) {
230230 builderAndParser .getLeft ().forEach (sourceBuilder ::aggregation );
231231 sourceBuilder .size (0 );
232- this .paginatingAgg = having ;
232+ this .paginatingAgg = hasHavingClause ;
233233 exprValueFactory .setParser (builderAndParser .getRight ());
234234 // no need to sort docs for aggregation
235235 if (sourceBuilder .sorts () != null ) {
You can’t perform that action at this time.
0 commit comments