OmniSciDB  a987f07e93
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CalciteAdapter.h File Reference
#include <string>
+ Include dependency graph for CalciteAdapter.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string pg_shim (const std::string &)
 

Function Documentation

std::string pg_shim ( const std::string &  )

Definition at line 273 of file CalciteAdapter.cpp.

References LOG, anonymous_namespace{CalciteAdapter.cpp}::pg_shim_impl(), and logger::WARNING.

Referenced by Parser::create_stmt_for_query(), QueryRunner::QueryRunner::createStatement(), Parser::CreateViewStmt::execute(), QueryRunner::QueryRunner::getCalcitePlan(), Parser::LocalQueryConnector::getOuterFragmentCount(), QueryRunner::QueryRunner::getParsedGlobalQueryHints(), QueryRunner::QueryRunner::getParsedQueryHint(), QueryRunner::QueryRunner::getParsedQueryHints(), QueryRunner::QueryRunner::getQueryInfoForDataRecyclerTest(), QueryRunner::QueryRunner::getRaExecutionSequence(), QueryRunner::QueryRunner::getRelAlgDag(), QueryRunner::QueryRunner::getRelAlgTranslator(), QueryRunner::QueryRunner::getRootNodeFromParsedQuery(), DBHandler::processCalciteRequest(), Parser::LocalQueryConnector::query(), QueryRunner::anonymous_namespace{QueryRunner.cpp}::run_select_query_with_filter_push_down(), QueryRunner::QueryRunner::runDDLStatement(), QueryRunner::QueryRunner::runSelectQuery(), QueryRunner::QueryRunner::runSQLWithAllowingInterrupt(), and QueryRunner::QueryRunner::validateDDLStatement().

273  {
274  try {
275  return pg_shim_impl(query);
276  } catch (const std::exception& e) {
277  LOG(WARNING) << "Error applying shim: " << e.what() << "\nContinuing query parse...";
278  // boost::regex throws an exception about the complexity of matching when
279  // the wrong type of quotes are used or they're mismatched. Let the query
280  // through unmodified, the parser will throw a much more informative error.
281  }
282  return query;
283 }
#define LOG(tag)
Definition: Logger.h:283
std::string pg_shim_impl(const std::string &query)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: