Skip to content

Commit 69a5a26

Browse files
gehnaphoreGeorge Hoffmanyhmo
authored
Address #1721 by putting filteredPKStr used for paging in QueryIterator first in the query, allowing any RANDOM_SAMPLE clause to come last (#1722)
Co-authored-by: George Hoffman <george@patientcase.com> Co-authored-by: groot <yihua.mo@zilliz.com>
1 parent 75bd1ea commit 69a5a26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)