MCPcopy Create free account
hub / github.com/apache/impala / SubmitAndWait

Method SubmitAndWait

be/src/service/internal-server.cc:157–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155} // ImpalaServer::ExecuteAndFetchAllHS2
156
157Status ImpalaServer::SubmitAndWait(const string& user_name, const string& sql,
158 TUniqueId& new_session_id, TUniqueId& new_query_id, const QueryOptionMap& query_opts,
159 const bool persist_in_db) {
160
161 RETURN_IF_ERROR(OpenSession(user_name, new_session_id, query_opts));
162 RETURN_IF_ERROR(SubmitQuery(sql, new_session_id, new_query_id, persist_in_db));
163
164 if (const auto& debug_action = query_opts.find(TImpalaQueryOptions::DEBUG_ACTION);
165 debug_action != query_opts.end()) {
166 RETURN_IF_ERROR(DebugAction(debug_action->second, "INTERNAL_SERVER_AFTER_SUBMIT"));
167 }
168
169 return WaitForResults(new_query_id);
170} // ImpalaServer::SubmitAndWait
171
172Status ImpalaServer::WaitForResults(TUniqueId& query_id) {
173 QueryHandle query_handle;

Callers

nothing calls this directly

Calls 3

DebugActionFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected