mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip ci] Add comments for parse bool node (#8552)
Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
This commit is contained in:
parent
ed4d912b5b
commit
97451ba229
@ -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{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user