Fix panic when expr invalid (#19642)

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
This commit is contained in:
Cai Yudong 2022-10-09 11:48:57 +08:00 committed by GitHub
parent 6826964e60
commit 246693acb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -858,7 +858,7 @@ func (pc *parserContext) handleExpr(nodeRaw *ant_ast.Node) (*planpb.Expr, error)
case *ant_ast.BinaryNode:
return pc.handleBinaryExpr(node)
default:
return nil, fmt.Errorf("unsupported node (%s)", node.Type().String())
return nil, fmt.Errorf("unsupported node")
}
}