OmniSciDB  085a039ca4
 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.


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

Function Documentation

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

Definition at line 219 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(), Parser::LocalQueryConnector::getOuterFragmentCount(), QueryRunner::QueryRunner::getParsedGlobalQueryHints(), QueryRunner::QueryRunner::getParsedQueryHint(), QueryRunner::QueryRunner::getParsedQueryHints(), QueryRunner::QueryRunner::getQueryInfoForDataRecyclerTest(), QueryRunner::QueryRunner::getRaExecutionSequence(), QueryRunner::QueryRunner::getRelAlgTranslator(), QueryRunner::QueryRunner::getRootNodeFromParsedQuery(), DBHandler::parse_to_ra(), 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().

219  {
220  try {
221  return pg_shim_impl(query);
222  } catch (const std::exception& e) {
223  LOG(WARNING) << "Error applying shim: " << e.what() << "\nContinuing query parse...";
224  // boost::regex throws an exception about the complexity of matching when
225  // the wrong type of quotes are used or they're mismatched. Let the query
226  // through unmodified, the parser will throw a much more informative error.
227  }
228  return query;
229 }
#define LOG(tag)
Definition: Logger.h:217
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: