Skip to content

Commit

Permalink
fix: Use lower case "and" operator in query iterator (#755)
Browse files Browse the repository at this point in the history
See also #753

---------

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia authored May 31, 2024
1 parent 388b832 commit e151f03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (itr *QueryIterator) composeIteratorExpr() string {

expr := strings.TrimSpace(itr.expr)
if expr != "" {
expr += " AND "
expr += " and "
}

switch itr.pkField.DataType {
Expand Down
3 changes: 2 additions & 1 deletion test/testcases/index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ func TestCreateIndexJsonField(t *testing.T) {
}

func TestCreateIndexArrayField(t *testing.T) {
t.Skip("array index supported")
ctx := createContext(t, time.Second*common.DefaultTimeout)
// connect
mc := createMilvusClient(ctx, t)
Expand Down Expand Up @@ -824,7 +825,7 @@ func TestCreateSparseIndexInvalidParams2(t *testing.T) {
common.CheckIndexResult(t, descIdx, expIdx)
}

//create sparse unsupported index: other vector index and scalar index and auto index
// create sparse unsupported index: other vector index and scalar index and auto index
func TestCreateSparseUnsupportedIndex(t *testing.T) {
ctx := createContext(t, time.Second*common.DefaultTimeout)
//connect
Expand Down

0 comments on commit e151f03

Please sign in to comment.