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

Method parse_sql_info

src/db/sqlengine/sqlengine_impl.cc:274–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274Result<QueryInfo::Ptr> SQLEngineImpl::parse_sql_info(
275 const CollectionSchema &schema, const SQLInfo::Ptr &sql_info) {
276 ScopedProfilerStage stage_guard(profiler_, "analyze_sql_info");
277 QueryAnalyzer analyzer;
278 auto query_info = analyzer.analyze(schema, sql_info);
279 if (!query_info) {
280 return tl::make_unexpected(Status::InvalidArgument(
281 "Analyze SQL info failed: ", query_info.error().c_str()));
282 }
283 LOG_DEBUG("query_info: [%s]", query_info.value()->to_string().c_str());
284 return query_info.value();
285}
286
287Result<QueryInfo::Ptr> SQLEngineImpl::build_query_info(
288 CollectionSchema::Ptr collection, const SearchQuery &request,

Callers

nothing calls this directly

Calls 6

make_unexpectedFunction · 0.85
analyzeMethod · 0.80
c_strMethod · 0.45
errorMethod · 0.45
to_stringMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected