@@ -35,7 +35,7 @@ using namespace facebook::axiom;
3535
3636namespace axiom ::sql {
3737
38- void SqlQueryRunner ::initialize (
38+ void AxiomSqlQueryRunner ::initialize (
3939 const std::function<std::pair<std::string, std::optional<std::string>>(
4040 optimizer::VeloxHistory& history)>& initializeConnectors) {
4141 static folly::once_flag kInitialized ;
@@ -87,7 +87,7 @@ std::vector<velox::RowVectorPtr> fetchResults(runner::LocalRunner& runner) {
8787
8888} // namespace
8989
90- connector::TablePtr SqlQueryRunner ::createTable (
90+ connector::TablePtr AxiomSqlQueryRunner ::createTable (
9191 const presto::CreateTableAsSelectStatement& statement) {
9292 auto metadata =
9393 connector::ConnectorMetadata::metadata (statement.connectorId ());
@@ -103,7 +103,7 @@ connector::TablePtr SqlQueryRunner::createTable(
103103 session, statement.tableName (), statement.tableSchema (), options);
104104}
105105
106- std::string SqlQueryRunner ::dropTable (
106+ std::string AxiomSqlQueryRunner ::dropTable (
107107 const presto::DropTableStatement& statement) {
108108 auto metadata =
109109 connector::ConnectorMetadata::metadata (statement.connectorId ());
@@ -121,7 +121,7 @@ std::string SqlQueryRunner::dropTable(
121121 }
122122}
123123
124- SqlQueryRunner ::SqlResult SqlQueryRunner ::run (
124+ AxiomSqlQueryRunner ::SqlResult AxiomSqlQueryRunner ::run (
125125 std::string_view sql,
126126 const RunOptions& options) {
127127 auto statements = parseMultiple (sql, options);
@@ -133,13 +133,13 @@ SqlQueryRunner::SqlResult SqlQueryRunner::run(
133133 return run (*statements[0 ], options);
134134}
135135
136- std::vector<presto::SqlStatementPtr> SqlQueryRunner ::parseMultiple (
136+ std::vector<presto::SqlStatementPtr> AxiomSqlQueryRunner ::parseMultiple (
137137 std::string_view sql,
138138 const RunOptions& options) {
139139 return prestoParser_->parseMultiple (sql, /* enableTracing=*/ options.debugMode );
140140}
141141
142- SqlQueryRunner ::SqlResult SqlQueryRunner ::run (
142+ AxiomSqlQueryRunner ::SqlResult AxiomSqlQueryRunner ::run (
143143 const presto::SqlStatement& sqlStatement,
144144 const RunOptions& options) {
145145 if (sqlStatement.isExplain ()) {
@@ -198,7 +198,7 @@ SqlQueryRunner::SqlResult SqlQueryRunner::run(
198198 return {.results = runSql (logicalPlan, options)};
199199}
200200
201- std::shared_ptr<velox::core::QueryCtx> SqlQueryRunner ::newQuery (
201+ std::shared_ptr<velox::core::QueryCtx> AxiomSqlQueryRunner ::newQuery (
202202 const RunOptions& options) {
203203 ++queryCounter_;
204204
@@ -216,7 +216,7 @@ std::shared_ptr<velox::core::QueryCtx> SqlQueryRunner::newQuery(
216216 fmt::format (" query_{}" , queryCounter_));
217217}
218218
219- std::string SqlQueryRunner ::runExplain (
219+ std::string AxiomSqlQueryRunner ::runExplain (
220220 const logical_plan::LogicalPlanNodePtr& logicalPlan,
221221 presto::ExplainStatement::Type type,
222222 const RunOptions& options) {
@@ -273,7 +273,7 @@ std::string printPlanWithStats(
273273}
274274} // namespace
275275
276- std::string SqlQueryRunner ::runExplainAnalyze (
276+ std::string AxiomSqlQueryRunner ::runExplainAnalyze (
277277 const logical_plan::LogicalPlanNodePtr& logicalPlan,
278278 const RunOptions& options) {
279279 auto queryCtx = newQuery (options);
@@ -293,7 +293,7 @@ std::string SqlQueryRunner::runExplainAnalyze(
293293 return out.str ();
294294}
295295
296- optimizer::PlanAndStats SqlQueryRunner ::optimize (
296+ optimizer::PlanAndStats AxiomSqlQueryRunner ::optimize (
297297 const logical_plan::LogicalPlanNodePtr& logicalPlan,
298298 const std::shared_ptr<velox::core::QueryCtx>& queryCtx,
299299 const RunOptions& options,
@@ -339,7 +339,7 @@ optimizer::PlanAndStats SqlQueryRunner::optimize(
339339 return optimization.toVeloxPlan (best->op );
340340}
341341
342- std::shared_ptr<runner::LocalRunner> SqlQueryRunner ::makeLocalRunner (
342+ std::shared_ptr<runner::LocalRunner> AxiomSqlQueryRunner ::makeLocalRunner (
343343 optimizer::PlanAndStats& planAndStats,
344344 const std::shared_ptr<velox::core::QueryCtx>& queryCtx,
345345 const RunOptions& options) {
@@ -357,7 +357,7 @@ std::shared_ptr<runner::LocalRunner> SqlQueryRunner::makeLocalRunner(
357357 optimizerPool_);
358358}
359359
360- std::vector<velox::RowVectorPtr> SqlQueryRunner ::runSql (
360+ std::vector<velox::RowVectorPtr> AxiomSqlQueryRunner ::runSql (
361361 const logical_plan::LogicalPlanNodePtr& logicalPlan,
362362 const RunOptions& options) {
363363 auto queryCtx = newQuery (options);
0 commit comments