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

Method parse_sql_info

src/db/sqlengine/sqlengine_impl.cc:275–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected