OmniSciDB  29e35f4d58
anonymous_namespace{ExpressionRewrite.cpp} Namespace Reference

Classes

class  ArrayElementStringLiteralEncodingVisitor
 
class  ConstantFoldingVisitor
 
class  OrToInVisitor
 
class  RecursiveOrToInVisitor
 

Functions

const Analyzer::Exprstrip_likelihood (const Analyzer::Expr *expr)
 

Variables

static const std::unordered_set< std::string > overlaps_supported_functions
 

Function Documentation

◆ strip_likelihood()

const Analyzer::Expr* anonymous_namespace{ExpressionRewrite.cpp}::strip_likelihood ( const Analyzer::Expr expr)

Definition at line 682 of file ExpressionRewrite.cpp.

Referenced by fold_expr(), and rewrite_expr().

682  {
683  const auto with_likelihood = dynamic_cast<const Analyzer::LikelihoodExpr*>(expr);
684  if (!with_likelihood) {
685  return expr;
686  }
687  return with_likelihood->get_arg();
688 }
+ Here is the caller graph for this function:

Variable Documentation

◆ overlaps_supported_functions

const std::unordered_set<std::string> anonymous_namespace{ExpressionRewrite.cpp}::overlaps_supported_functions
static
Initial value:
= {
"ST_Contains_MultiPolygon_Point",
"ST_Contains_Polygon_Point"}

Definition at line 723 of file ExpressionRewrite.cpp.

Referenced by rewrite_overlaps_conjunction(), and JoinCoveredQualVisitor::visitFunctionOper().