| 273 | } |
| 274 | |
| 275 | Result<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 | |
| 288 | Result<QueryInfo::Ptr> SQLEngineImpl::build_query_info( |
| 289 | CollectionSchema::Ptr collection, const SearchQuery &request, |
nothing calls this directly
no test coverage detected