Skip to content

Commit 7150c72

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

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
@@ -201,7 +201,7 @@ private String setupNextExpr() {
201201
if (StringUtils.isEmpty(currentExpr)) {
202202
return filteredPKStr;
203203
}
204-
return " ( " + currentExpr + " ) " + " and " + filteredPKStr;
204+
return filteredPKStr + " and ( " + currentExpr + " )";
205205
}
206206

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

0 commit comments

Comments
 (0)