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

Method parse

tests/db/sqlengine/simple_rewriter_test.cc:190–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188 static void TearDownTestSuite() {}
189
190 QueryInfo::Ptr parse(const std::string &filter) {
191 SearchQuery query;
192 query.output_fields_ = {"*"};
193 query.topk_ = 11;
194 query.include_vector_ = false;
195 query.filter_ = filter;
196
197 auto engine = std::make_shared<SQLEngineImpl>(profiler_);
198 auto ret = engine->build_query_info(schema, query, nullptr);
199
200 // ASSERT_TRUE(ret.has_value());
201 QueryInfo::Ptr new_query_info = ret.value();
202 return new_query_info;
203 }
204
205
206 protected:

Callers

nothing calls this directly

Calls 2

build_query_infoMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected