16 #ifndef IMPALA_TESTUTIL_IMPALAD_QUERY_EXECUTOR_H
17 #define IMPALA_TESTUTIL_IMPALAD_QUERY_EXECUTOR_H
21 #include <boost/scoped_ptr.hpp>
22 #include <boost/shared_ptr.hpp>
23 #include <boost/thread/thread.hpp>
29 #include "gen-cpp/Types_types.h"
30 #include "gen-cpp/ImpalaService.h"
31 #include "gen-cpp/ImpalaService_types.h"
48 std::vector<Apache::Hadoop::Hive::FieldSchema>* col_types);
51 Status Explain(
const std::string& query_string, std::string* explain_plan);
90 boost::scoped_ptr<ThriftClient<ImpalaServiceClient> >
client_;
Status Exec(const std::string &query_string, std::vector< Apache::Hadoop::Hive::FieldSchema > *col_types)
beeswax::QueryHandle query_handle_
Beeswax query handle and result.
beeswax::Results query_results_
Status Close()
call beeswax.close() for current query, if one in progress
boost::scoped_ptr< ThriftClient< ImpalaServiceClient > > client_
fe service-related
beeswax::QueryExplanation query_explanation_
std::string ErrorString() const
std::vector< std::string > exec_options_
Execution options.
Query execution against running impalad process.
RuntimeProfile * query_profile()
Returns the counters for the entire query.
void setExecOptions(const std::vector< std::string > &exec_options)
std::string FileErrors() const
Returns a string representation of the file_errors_.
Status FetchResult(RowBatch **batch)
Status Explain(const std::string &query_string, std::string *explain_plan)
Return the explain plan for the query.