Skip to content

Commit a2cb7be

Browse files
yhmogehnaphoreGeorge Hoffman
authored
Address #1721 by putting filteredPKStr used for paging in QueryIterator first in the query, allowing any RANDOM_SAMPLE clause to come last (#1722) (#1725)
Co-authored-by: gehnaphore <geh@georgeandjulia.com> Co-authored-by: George Hoffman <george@patientcase.com>
1 parent 51fcc0b commit a2cb7be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk-core/src/main/java/io/milvus/orm/iterator/QueryIterator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ private String setupNextExpr() {
199199
if (StringUtils.isEmpty(currentExpr)) {
200200
return filteredPKStr;
201201
}
202-
return " ( " + currentExpr + " ) " + " and " + filteredPKStr;
202+
return filteredPKStr + " and ( " + currentExpr + " )";
203203
}
204204

205205
private boolean isResSufficient(List<QueryResultsWrapper.RowRecord> ret) {

0 commit comments

Comments
 (0)