OmniSciDB  04ee39c94c
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 666 of file ExpressionRewrite.cpp.

Referenced by fold_expr(), and rewrite_expr().

666  {
667  const auto with_likelihood = dynamic_cast<const Analyzer::LikelihoodExpr*>(expr);
668  if (!with_likelihood) {
669  return expr;
670  }
671  return with_likelihood->get_arg();
672 }
+ 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 707 of file ExpressionRewrite.cpp.

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