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

Method handle_id_node

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

Source from the content-addressed store, hash-verified

614}
615
616Node::Ptr ZVecSQLParser::handle_id_node(VoidPtr node) {
617 SQLParser::IdentifierContext *identifier_node =
618 reinterpret_cast<SQLParser::IdentifierContext *>(node);
619
620 Node::Ptr identifier_expr =
621 std::make_shared<IDNode>(identifier_node->getText());
622 identifier_expr->set_op(NodeOp::T_ID);
623 return identifier_expr;
624}
625
626Node::Ptr ZVecSQLParser::parse_filter(const std::string &filter,
627 bool need_formatted_tree) {

Callers

nothing calls this directly

Calls 2

getTextMethod · 0.80
set_opMethod · 0.45

Tested by

no test coverage detected