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

Function ParseAndValidate

tests/db/index/segment/sql_expr_validator_test.cc:29–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27using namespace zvec;
28
29arrow::Result<Expression> ParseAndValidate(
30 const std::string &expr, const std::shared_ptr<arrow::Schema> &schema) {
31 ARROW_ASSIGN_OR_RAISE(auto parsed, ParseToExpression(expr, schema));
32 return CheckSupportedArithmeticExpression(parsed, *schema);
33}
34
35class ExprValidatorTest : public ::testing::Test {
36 protected:

Callers 1

TEST_FFunction · 0.85

Calls 1

Tested by

no test coverage detected