Fix 6249, use more clear error message (#6316)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
dragondriver 2021-07-06 14:40:04 +08:00 committed by GitHub
parent 97b1426666
commit 166548447b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1292,7 +1292,8 @@ func (st *SearchTask) PreExecute(ctx context.Context) error {
plan, err := CreateQueryPlan(schema, st.query.Dsl, annsField, queryInfo)
if err != nil {
return errors.New("invalid expression: " + st.query.Dsl)
//return errors.New("invalid expression: " + st.query.Dsl)
return err
}
for _, name := range st.query.OutputFields {
for _, field := range schema.Fields {