MCPcopy Create free account
hub / github.com/alibaba/zvec / handle_bool_value_node

Method handle_bool_value_node

src/db/sqlengine/parser/zvec_sql_parser.cc:498–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498Node::Ptr ZVecSQLParser::handle_bool_value_node(
499 antlr4::SQLParser::Bool_valueContext *node) {
500 // normalize bool value
501 auto value = node->TRUE_V() ? "true" : "false";
502 auto const_expr = std::make_shared<ConstantNode>(value);
503 const_expr->set_op(NodeOp::T_BOOL_VALUE);
504 return const_expr;
505}
506
507Node::Ptr ZVecSQLParser::handle_in_value_expr_list_node(VoidPtr node,
508 bool exclude) {

Callers

nothing calls this directly

Calls 2

TRUE_VMethod · 0.80
set_opMethod · 0.45

Tested by

no test coverage detected