Skip to content
Snippets Groups Projects
Commit 1a1e8647 authored by xige-16's avatar xige-16 Committed by yefu.chen
Browse files

Fix query node crash when empty search


Signed-off-by: default avatarxige-16 <xi.ge@zilliz.com>
parent d5613794
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,9 @@ type PlaceholderGroup struct {
}
func parserPlaceholderGroup(plan *Plan, placeHolderBlob []byte) (*PlaceholderGroup, error) {
if len(placeHolderBlob) == 0 {
return nil, errors.New("empty search request")
}
var blobPtr = unsafe.Pointer(&placeHolderBlob[0])
blobSize := C.long(len(placeHolderBlob))
var cPlaceholderGroup C.CPlaceholderGroup
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment