[skip e2e] Add comment for createSearchPlan (#15111)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/15132/head
bigsheeper 2022-01-10 22:36:06 +08:00 committed by GitHub
parent 4174daee80
commit 018f32847f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ type SearchPlan struct {
cSearchPlan C.CSearchPlan
}
// createSearchPlan returns a new SearchPlan and error
func createSearchPlan(col *Collection, dsl string) (*SearchPlan, error) {
if col.collectionPtr == nil {
return nil, errors.New("nil collection ptr, collectionID = " + fmt.Sprintln(col.id))