OmniSciDB  06b3bd477c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CalciteAdapter.cpp File Reference
#include "CalciteAdapter.h"
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/regex.hpp>
#include "Shared/StringTransform.h"
+ Include dependency graph for CalciteAdapter.cpp:

Go to the source code of this file.




std::string anonymous_namespace{CalciteAdapter.cpp}::pg_shim_impl (const std::string &query)
std::string pg_shim (const std::string &query)

Function Documentation

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

Definition at line 218 of file CalciteAdapter.cpp.

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

Referenced by Parser::CreateViewStmt::execute(), Parser::LocalConnector::getOuterFragmentCount(), QueryRunner::QueryRunner::getParsedQueryHintofQuery(), DBHandler::parse_to_ra(), Parser::LocalConnector::query(), QueryRunner::anonymous_namespace{QueryRunner.cpp}::run_select_query_with_filter_push_down(), QueryRunner::QueryRunner::runSelectQuery(), and QueryRunner::QueryRunner::runSQLWithAllowingInterrupt().

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