Skip to content

Commit

Permalink
fix: Fix error message for indexing (#29898)
Browse files Browse the repository at this point in the history
issue: #29897

---------

Signed-off-by: Cai Zhang <[email protected]>
  • Loading branch information
xiaocai2333 authored Jan 12, 2024
1 parent 565fc3a commit 8c89ad6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/proxy/task_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (cit *createIndexTask) parseIndexParams() error {
} else {
return merr.WrapErrParameterInvalid("supported field",
fmt.Sprintf("create index on %s field", cit.fieldSchema.DataType.String()),
"create index on json field is not supported")
fmt.Sprintf("create index on %s field is not supported", cit.fieldSchema.DataType.String()))
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/python_client/testcases/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -1343,8 +1343,8 @@ def test_create_index_json(self):
dim=ct.default_dim, is_index=False)[0:4]
collection_w.create_index(ct.default_json_field_name, index_params=ct.default_flat_index,
check_task=CheckTasks.err_res,
check_items={ct.err_code: 1,
ct.err_msg: "create index on json field is not supported"})
check_items={ct.err_code: 1100,
ct.err_msg: "create index on JSON field is not supported"})


@pytest.mark.tags(CaseLabel.GPU)
Expand Down

0 comments on commit 8c89ad6

Please sign in to comment.