[skip ci] Add comments for parse bool node (#8552)

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
This commit is contained in:
Cai Yudong 2021-09-27 23:58:02 +08:00 committed by GitHub
parent ed4d912b5b
commit 97451ba229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -258,6 +258,7 @@ func getLogicalOpType(opStr string) planpb.BinaryExpr_BinaryOp {
func parseBoolNode(nodeRaw *ant_ast.Node) *ant_ast.BoolNode {
switch node := (*nodeRaw).(type) {
case *ant_ast.IdentifierNode:
// bool node only accept value 'true' or 'false'
val := strings.ToLower(node.Value)
if val == "true" {
return &ant_ast.BoolNode{