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

Method parse

src/db/index/segment/sql_expr_parser.cc:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 : expr_(expr), pos_(0), schema_(schema) {}
37
38 arrow::Result<Expression> parse() {
39 skip_whitespace();
40 ARROW_ASSIGN_OR_RAISE(auto e, parse_expression());
41 skip_whitespace();
42 if ((size_t)pos_ < expr_.size()) {
43 return arrow::Status::Invalid("Unexpected character at position ", pos_,
44 ": ", expr_[pos_]);
45 }
46 return e;
47 }
48
49 private:
50 std::string expr_;

Callers 1

ParseToExpressionFunction · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected