OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Analyzer::Expr Class Referenceabstract

#include <Analyzer.h>

+ Inheritance diagram for Analyzer::Expr:
+ Collaboration diagram for Analyzer::Expr:

Public Member Functions

 Expr (SQLTypes t, bool notnull)
 
 Expr (SQLTypes t, int d, bool notnull)
 
 Expr (SQLTypes t, int d, int s, bool notnull)
 
 Expr (const SQLTypeInfo &ti, bool has_agg=false)
 
virtual ~Expr ()
 
std::shared_ptr< Analyzer::Exprget_shared_ptr ()
 
const SQLTypeInfoget_type_info () const
 
void set_type_info (const SQLTypeInfo &ti)
 
bool get_contains_agg () const
 
void set_contains_agg (bool a)
 
virtual std::shared_ptr
< Analyzer::Expr
add_cast (const SQLTypeInfo &new_type_info)
 
virtual void check_group_by (const std::list< std::shared_ptr< Analyzer::Expr >> &groupby) const
 
virtual std::shared_ptr
< Analyzer::Expr
deep_copy () const =0
 
virtual std::shared_ptr
< Analyzer::Expr
normalize_simple_predicate (int &rte_idx) const
 
virtual void group_predicates (std::list< const Expr * > &scan_predicates, std::list< const Expr * > &join_predicates, std::list< const Expr * > &const_predicates) const
 
virtual void collect_rte_idx (std::set< int > &rte_idx_set) const
 
virtual void collect_column_var (std::set< const ColumnVar *, bool(*)(const ColumnVar *, const ColumnVar *)> &colvar_set, bool include_agg) const
 
virtual size_t get_num_column_vars (const bool include_agg) const
 
virtual std::shared_ptr
< Analyzer::Expr
rewrite_with_targetlist (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const
 
virtual std::shared_ptr
< Analyzer::Expr
rewrite_with_child_targetlist (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const
 
virtual std::shared_ptr
< Analyzer::Expr
rewrite_agg_to_var (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const
 
virtual bool operator== (const Expr &rhs) const =0
 
virtual std::string toString () const =0
 
virtual void print () const
 
virtual void add_unique (std::list< const Expr * > &expr_list) const
 
virtual void find_expr (std::function< bool(const Expr *)> f, std::list< const Expr * > &expr_list) const
 
std::shared_ptr< Analyzer::Exprdecompress ()
 
virtual void get_domain (DomainSet &domain_set) const
 

Protected Attributes

SQLTypeInfo type_info
 
bool contains_agg
 

Detailed Description

Definition at line 68 of file Analyzer.h.

Constructor & Destructor Documentation

Analyzer::Expr::Expr ( SQLTypes  t,
bool  notnull 
)
inline

Definition at line 70 of file Analyzer.h.

70 : type_info(t, notnull), contains_agg(false) {}
SQLTypeInfo type_info
Definition: Analyzer.h:180
bool contains_agg
Definition: Analyzer.h:181
Analyzer::Expr::Expr ( SQLTypes  t,
int  d,
bool  notnull 
)
inline

Definition at line 71 of file Analyzer.h.

72  : type_info(t, d, 0, notnull), contains_agg(false) {}
SQLTypeInfo type_info
Definition: Analyzer.h:180
bool contains_agg
Definition: Analyzer.h:181
Analyzer::Expr::Expr ( SQLTypes  t,
int  d,
int  s,
bool  notnull 
)
inline

Definition at line 73 of file Analyzer.h.

74  : type_info(t, d, s, notnull), contains_agg(false) {}
SQLTypeInfo type_info
Definition: Analyzer.h:180
bool contains_agg
Definition: Analyzer.h:181
Analyzer::Expr::Expr ( const SQLTypeInfo ti,
bool  has_agg = false 
)
inline

Definition at line 75 of file Analyzer.h.

76  : type_info(ti), contains_agg(has_agg) {}
SQLTypeInfo type_info
Definition: Analyzer.h:180
bool contains_agg
Definition: Analyzer.h:181
virtual Analyzer::Expr::~Expr ( )
inlinevirtual

Definition at line 77 of file Analyzer.h.

77 {}

Member Function Documentation

std::shared_ptr< Analyzer::Expr > Analyzer::Expr::add_cast ( const SQLTypeInfo new_type_info)
virtual

Reimplemented in Analyzer::GeoOperator, Analyzer::GeoConstant, Analyzer::CaseExpr, Analyzer::Subquery, Analyzer::UOper, and Analyzer::Constant.

Definition at line 774 of file Analyzer.cpp.

References contains_agg, shared::StringDictKey::dict_id, SQLTypeInfo::get_compression(), get_num_column_vars(), SQLTypeInfo::get_type_name(), SQLTypeInfo::getStringDictKey(), Analyzer::anonymous_namespace{Analyzer.cpp}::has_same_dict(), SQLTypeInfo::is_castable(), SQLTypeInfo::is_number(), SQLTypeInfo::is_string(), SQLTypeInfo::is_text_encoding_dict(), SQLTypeInfo::is_time(), kCAST, kENCODING_DICT, Analyzer::anonymous_namespace{Analyzer.cpp}::make_transient_dict_type(), TRANSIENT_DICT_ID, and type_info.

Referenced by Analyzer::Constant::add_cast(), Analyzer::UOper::add_cast(), and Parser::QuerySpec::analyze_group_by().

774  {
775  if (new_type_info == type_info) {
776  return shared_from_this();
777  }
778  if (new_type_info.is_string() && type_info.is_string() &&
779  new_type_info.get_compression() == kENCODING_DICT &&
781  has_same_dict(new_type_info, type_info)) {
782  return shared_from_this();
783  }
784  if (!type_info.is_castable(new_type_info)) {
785  if (type_info.is_string() && (new_type_info.is_number() || new_type_info.is_time())) {
786  throw std::runtime_error("Cannot CAST from " + type_info.get_type_name() + " to " +
787  new_type_info.get_type_name() +
788  ". Consider using TRY_CAST instead.");
789  }
790  throw std::runtime_error("Cannot CAST from " + type_info.get_type_name() + " to " +
791  new_type_info.get_type_name());
792  }
793  // @TODO(wei) temporary restriction until executor can support this.
794  const bool has_non_literal_operands = get_num_column_vars(true) > 0UL;
795  if (has_non_literal_operands && new_type_info.is_string() &&
796  new_type_info.get_compression() == kENCODING_DICT &&
797  new_type_info.getStringDictKey().dict_id <= TRANSIENT_DICT_ID) {
799  throw std::runtime_error(
800  "Implicit casts of TEXT ENCODING NONE to TEXT ENCODED DICT are not allowed "
801  "for non-literal arguments. Consider adding an explicit conversion to a "
802  "dictionary-encoded text type with ENCODE_TEXT(<none-encoded text arg>).");
803  }
804  throw std::runtime_error(
805  "Internal error: Cannot apply transient dictionary encoding "
806  "to non-literal expression.");
807  }
808  if (!type_info.is_string() && new_type_info.is_string() &&
809  !new_type_info.is_text_encoding_dict()) {
810  return makeExpr<UOper>(
811  make_transient_dict_type(new_type_info), contains_agg, kCAST, shared_from_this());
812  }
813  return makeExpr<UOper>(new_type_info, contains_agg, kCAST, shared_from_this());
814 }
Definition: sqldefs.h:51
bool has_same_dict(const SQLTypeInfo &type1, const SQLTypeInfo &type2)
Definition: Analyzer.cpp:443
#define TRANSIENT_DICT_ID
Definition: DbObjectKeys.h:24
bool is_number() const
Definition: sqltypes.h:576
SQLTypeInfo type_info
Definition: Analyzer.h:180
bool is_time() const
Definition: sqltypes.h:579
bool is_castable(const SQLTypeInfo &new_type_info) const
Definition: sqltypes.h:715
bool is_text_encoding_dict() const
Definition: sqltypes.h:617
SQLTypeInfo make_transient_dict_type(SQLTypeInfo sql_type_info_copy)
Definition: Analyzer.cpp:764
HOST DEVICE EncodingType get_compression() const
Definition: sqltypes.h:399
std::string get_type_name() const
Definition: sqltypes.h:484
bool is_string() const
Definition: sqltypes.h:561
virtual size_t get_num_column_vars(const bool include_agg) const
Definition: Analyzer.cpp:58
bool contains_agg
Definition: Analyzer.h:181
const shared::StringDictKey & getStringDictKey() const
Definition: sqltypes.h:1057

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual void Analyzer::Expr::check_group_by ( const std::list< std::shared_ptr< Analyzer::Expr >> &  groupby) const
inlinevirtual
virtual void Analyzer::Expr::collect_column_var ( std::set< const ColumnVar *, bool(*)(const ColumnVar *, const ColumnVar *)> &  colvar_set,
bool  include_agg 
) const
inlinevirtual
std::shared_ptr< Analyzer::Expr > Analyzer::Expr::decompress ( )

Definition at line 749 of file Analyzer.cpp.

References contains_agg, SQLTypeInfo::get_compression(), SQLTypeInfo::get_dimension(), SQLTypeInfo::get_notnull(), SQLTypeInfo::get_scale(), SQLTypeInfo::get_subtype(), SQLTypeInfo::get_type(), kCAST, kENCODING_NONE, and type_info.

749  {
751  return shared_from_this();
752  }
753  SQLTypeInfo new_type_info(type_info.get_type(),
758  0,
760  return makeExpr<UOper>(new_type_info, contains_agg, kCAST, shared_from_this());
761 }
HOST DEVICE SQLTypes get_subtype() const
Definition: sqltypes.h:392
HOST DEVICE int get_scale() const
Definition: sqltypes.h:396
Definition: sqldefs.h:51
HOST DEVICE SQLTypes get_type() const
Definition: sqltypes.h:391
SQLTypeInfo type_info
Definition: Analyzer.h:180
HOST DEVICE EncodingType get_compression() const
Definition: sqltypes.h:399
HOST DEVICE int get_dimension() const
Definition: sqltypes.h:393
HOST DEVICE bool get_notnull() const
Definition: sqltypes.h:398
bool contains_agg
Definition: Analyzer.h:181

+ Here is the call graph for this function:

virtual std::shared_ptr<Analyzer::Expr> Analyzer::Expr::deep_copy ( ) const
pure virtual

Implemented in Analyzer::GeoTransformOperator, Analyzer::GeoOperator, Analyzer::GeoConstant, Analyzer::GeoBinOper, Analyzer::GeoUOper, Analyzer::ArrayExpr, Analyzer::WindowFunction, Analyzer::WindowFrame, Analyzer::OffsetInFragment, Analyzer::FunctionOperWithCustomTypeHandling, Analyzer::FunctionOper, Analyzer::HashStringOper, Analyzer::LevenshteinDistanceStringOper, Analyzer::JarowinklerSimilarityStringOper, Analyzer::PositionStringOper, Analyzer::TryStringCastOper, Analyzer::UrlDecodeStringOper, Analyzer::UrlEncodeStringOper, Analyzer::Base64DecodeStringOper, Analyzer::Base64EncodeStringOper, Analyzer::JsonValueStringOper, Analyzer::RegexpCountStringOper, Analyzer::RegexpSubstrStringOper, Analyzer::RegexpReplaceStringOper, Analyzer::SplitPartStringOper, Analyzer::ReplaceStringOper, Analyzer::OverlayStringOper, Analyzer::SubstringStringOper, Analyzer::TrimStringOper, Analyzer::PadStringOper, Analyzer::ConcatStringOper, Analyzer::RepeatStringOper, Analyzer::ReverseStringOper, Analyzer::InitCapStringOper, Analyzer::UpperStringOper, Analyzer::LowerStringOper, Analyzer::StringOper, Analyzer::DatetruncExpr, Analyzer::DatediffExpr, Analyzer::DateaddExpr, Analyzer::ExtractExpr, Analyzer::CaseExpr, Analyzer::AggExpr, Analyzer::LikelihoodExpr, Analyzer::WidthBucketExpr, Analyzer::RegexpExpr, Analyzer::LikeExpr, Analyzer::CardinalityExpr, Analyzer::SampleRatioExpr, Analyzer::KeyForStringExpr, Analyzer::CharLengthExpr, Analyzer::PCAProjectExpr, Analyzer::MLPredictExpr, Analyzer::InIntegerSet, Analyzer::InValues, Analyzer::Subquery, Analyzer::RangeOper, Analyzer::BinOper, Analyzer::UOper, Analyzer::Constant, Analyzer::Var, Analyzer::ExpressionTuple, Analyzer::ColumnVar, and Analyzer::Estimator.

Referenced by QueryRewriter::generateCaseForDomainValues(), Analyzer::WidthBucketExpr::get_bound_val(), rewrite_agg_to_var(), rewrite_with_child_targetlist(), rewrite_with_targetlist(), and DeepCopyVisitor::visitGeoExpr().

+ Here is the caller graph for this function:

virtual void Analyzer::Expr::find_expr ( std::function< bool(const Expr *)>  f,
std::list< const Expr * > &  expr_list 
) const
inlinevirtual

Reimplemented in Analyzer::FunctionOper, Analyzer::StringOper, Analyzer::DatetruncExpr, Analyzer::DatediffExpr, Analyzer::DateaddExpr, Analyzer::ExtractExpr, Analyzer::CaseExpr, Analyzer::AggExpr, Analyzer::LikelihoodExpr, Analyzer::WidthBucketExpr, Analyzer::RegexpExpr, Analyzer::LikeExpr, Analyzer::CardinalityExpr, Analyzer::SampleRatioExpr, Analyzer::KeyForStringExpr, Analyzer::CharLengthExpr, Analyzer::PCAProjectExpr, Analyzer::MLPredictExpr, Analyzer::InValues, Analyzer::Subquery, Analyzer::BinOper, and Analyzer::UOper.

Definition at line 163 of file Analyzer.h.

References add_unique(), and f().

Referenced by anonymous_namespace{LogicalIR.cpp}::contains_unsafe_division(), and anonymous_namespace{RowFunctionManager.h}::find_function_oper().

164  {
165  if (f(this)) {
166  add_unique(expr_list);
167  }
168  }
virtual void add_unique(std::list< const Expr * > &expr_list) const
Definition: Analyzer.cpp:3248
torch::Tensor f(torch::Tensor x, torch::Tensor W_target, torch::Tensor b_target)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual void Analyzer::Expr::get_domain ( DomainSet domain_set) const
inlinevirtual

Reimplemented in Analyzer::CaseExpr.

Definition at line 177 of file Analyzer.h.

177 { domain_set.clear(); }
size_t Analyzer::Expr::get_num_column_vars ( const bool  include_agg) const
virtual

Definition at line 58 of file Analyzer.cpp.

References collect_column_var(), and Analyzer::ColumnVar::colvar_comp().

Referenced by add_cast(), and TextEncodingCastCountVisitor::visitUOper().

58  {
59  std::set<const Analyzer::ColumnVar*,
60  bool (*)(const Analyzer::ColumnVar*, const Analyzer::ColumnVar*)>
62  collect_column_var(colvar_set, include_agg);
63  return colvar_set.size();
64 }
static bool colvar_comp(const ColumnVar *l, const ColumnVar *r)
Definition: Analyzer.h:215
virtual void collect_column_var(std::set< const ColumnVar *, bool(*)(const ColumnVar *, const ColumnVar *)> &colvar_set, bool include_agg) const
Definition: Analyzer.h:117

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::shared_ptr<Analyzer::Expr> Analyzer::Expr::get_shared_ptr ( )
inline

Definition at line 78 of file Analyzer.h.

78 { return shared_from_this(); }
const SQLTypeInfo& Analyzer::Expr::get_type_info ( ) const
inline

Definition at line 79 of file Analyzer.h.

References type_info.

Referenced by Analyzer::GeoConstant::add_cast(), Analyzer::GeoOperator::add_cast(), Parser::ArrayLiteral::analyze(), spatial_type::AreaPerimeter::AreaPerimeter(), CodeGenerator::beginArgsNullcheck(), anonymous_namespace{ExtensionsIR.cpp}::call_requires_custom_type_handling(), Executor::canSkipFragmentForFpQual(), spatial_type::Centroid::Centroid(), Analyzer::StringOper::check_operand_types(), anonymous_namespace{IRCodegen.cpp}::check_valid_join_qual(), CodeGenerator::checkExpressionRanges(), spatial_type::Transform::codegen(), spatial_type::PointAccessors::codegen(), spatial_type::PointConstructor::codegen(), CodeGenerator::codegen(), GroupByAndAggregate::codegenAggArg(), GroupByAndAggregate::codegenApproxQuantile(), CodeGenerator::codegenArith(), CodeGenerator::codegenArrayAt(), CodeGenerator::codegenArrayExpr(), CodeGenerator::codegenCast(), CodeGenerator::codegenCmp(), CodeGenerator::codegenCmpDecimalConst(), CodeGenerator::codegenColVar(), GroupByAndAggregate::codegenCountDistinct(), CodeGenerator::codegenDeciDiv(), CodeGenerator::codegenDictLike(), CodeGenerator::codegenDictRegexp(), CodeGenerator::codegenFixedLengthColVar(), CodeGenerator::codegenFixedLengthColVarInWindow(), CodeGenerator::codegenFpArith(), Executor::codegenFrameBoundExpr(), CodeGenerator::codegenFunctionOper(), CodeGenerator::codegenFunctionOperCastArgs(), CodeGenerator::codegenFunctionOperNullArg(), CodeGenerator::codegenFunctionOperWithCustomTypeHandling(), CodeGenerator::codegenGeoBinOper(), CodeGenerator::codegenGeoColumnVar(), CodeGenerator::codegenGeoUOper(), CodeGenerator::codegenHoistedConstants(), CodeGenerator::codegenIntArith(), CodeGenerator::codegenIntConst(), spatial_type::NPoints::codegenLoads(), spatial_type::NRings::codegenLoads(), spatial_type::PointConstructor::codegenLoads(), spatial_type::NumGeometries::codegenLoads(), CodeGenerator::codegenLogical(), CodeGenerator::codegenLogicalShortCircuit(), GroupByAndAggregate::codegenMode(), CodeGenerator::codegenOuterJoinNullPlaceholder(), CodeGenerator::codegenPerRowStringOper(), CodeGenerator::codegenPseudoStringOper(), CodeGenerator::codegenQualifierCmp(), PerfectJoinHashTable::codegenSlot(), CodeGenerator::codegenStringFetchAndEncode(), CodeGenerator::codegenUMinus(), ScalarCodeGenerator::compile(), CodeGenerator::createInValuesBitmap(), Analyzer::InIntegerSet::deep_copy(), Analyzer::StringOper::deep_copy(), spatial_type::Distance::Distance(), CodeGenerator::endArgsNullcheck(), Parser::anonymous_namespace{ParserNode.cpp}::expr_is_null(), anonymous_namespace{ExtensionsIR.cpp}::ext_func_call_requires_nullcheck(), PerfectJoinHashTable::genChunkKey(), anonymous_namespace{WindowFunctionIR.cpp}::get_adjusted_window_type_info(), anonymous_namespace{GroupByAndAggregate.cpp}::get_agg_count(), get_agg_type(), anonymous_namespace{ColumnIR.cpp}::get_col_bit_width(), anonymous_namespace{ColumnIR.cpp}::get_col_decoder(), anonymous_namespace{FromTableReordering.cpp}::get_join_qual_cost(), anonymous_namespace{RelAlgExecutor.cpp}::get_logical_type_for_expr(), target_info::get_target_info_impl(), PerfectJoinHashTable::getAlternativeCacheKey(), RowFunctionManager::getDictDbId(), RowFunctionManager::getDictId(), getExpressionRange(), PerfectJoinHashTable::getHashJoinArgs(), getLeafColumnRange(), spatial_type::PointConstructor::getNullCheckCodegen(), CgenState::getOrAddLiteral(), HashJoin::getStrDictProxies(), spatial_type::Codegen::getTypeInfo(), GroupByAndAggregate::gpuCanHandleOrderEntries(), Executor::groupByColumnCodegen(), CodeGenerator::hashJoinLhs(), anonymous_namespace{GroupByAndAggregate.cpp}::init_count_distinct_descriptors(), Analyzer::anonymous_namespace{Analyzer.cpp}::is_expr_nullable(), RangeJoinHashTable::isInnerColCompressed(), anonymous_namespace{CompareIR.cpp}::lower_bw_eq(), WindowFunctionContext::makeComparator(), ColumnFetcher::makeJoinColumn(), anonymous_namespace{DateTimePlusRewrite.cpp}::match_const_integer(), anonymous_namespace{WindowExpressionRewrite.cpp}::matches_gt_bigint_zero(), CodeGenerator::needCastForHashJoinLhs(), HashJoin::normalizeColumnPair(), Analyzer::Constant::operator==(), Analyzer::FunctionOper::operator==(), Analyzer::FunctionOperWithCustomTypeHandling::operator==(), Analyzer::GeoConstant::operator==(), QueryMemoryDescriptor::pick_target_compact_width(), spatial_type::PointConstructor::PointConstructor(), pre_translate_string_ops(), anonymous_namespace{DateTimePlusRewrite.cpp}::remove_cast_to_date(), remove_cast_to_int(), Analyzer::StringOper::requiresPerRowTranslation(), Analyzer::ColumnVar::rewrite_agg_to_var(), Analyzer::Var::rewrite_agg_to_var(), Analyzer::AggExpr::rewrite_agg_to_var(), Analyzer::ColumnVar::rewrite_with_child_targetlist(), anonymous_namespace{LogicalIR.cpp}::should_defer_eval(), Analyzer::BinOper::simple_predicate_has_simple_cast(), Analyzer::ColumnVar::toString(), spatial_type::Transform::Transform(), translate_dict_strings(), var_ref(), DeepCopyVisitor::visitAggExpr(), DeepCopyVisitor::visitArrayOper(), anonymous_namespace{ExpressionRewrite.cpp}::ArrayElementStringLiteralEncodingVisitor::visitArrayOper(), DeepCopyVisitor::visitBinOper(), anonymous_namespace{ExpressionRewrite.cpp}::RecursiveOrToInVisitor::visitBinOper(), anonymous_namespace{ExpressionRewrite.cpp}::ConstantFoldingVisitor::visitBinOper(), DeepCopyVisitor::visitCaseExpr(), TransientDictIdVisitor::visitCaseExpr(), anonymous_namespace{JoinFilterPushDown.cpp}::BindFilterToOutermostVisitor::visitColumnVar(), ScalarExprToSql::visitConstant(), TransientStringLiteralsVisitor::visitConstant(), DeepCopyVisitor::visitDateaddExpr(), DeepCopyVisitor::visitDatediffExpr(), DeepCopyVisitor::visitDatetruncExpr(), DeepCopyVisitor::visitExtractExpr(), DeepCopyVisitor::visitFunctionOper(), DeepCopyVisitor::visitFunctionOperWithCustomTypeHandling(), DeepCopyVisitor::visitGeoBinOper(), DeepCopyVisitor::visitGeoUOper(), DeepCopyVisitor::visitInIntegerSet(), TransientStringLiteralsVisitor::visitStringOper(), TransientDictIdVisitor::visitStringOper(), anonymous_namespace{ExpressionRewrite.cpp}::ConstantFoldingVisitor::visitStringOper(), ScalarExprToSql::visitUOper(), DeepCopyVisitor::visitUOper(), TransientStringLiteralsVisitor::visitUOper(), TransientDictIdVisitor::visitUOper(), TextEncodingCastCountVisitor::visitUOper(), anonymous_namespace{ExpressionRewrite.cpp}::ConstantFoldingVisitor::visitUOper(), DeepCopyVisitor::visitWindowFunction(), and anonymous_namespace{WindowExpressionRewrite.cpp}::window_sum_and_count_match().

79 { return type_info; }
SQLTypeInfo type_info
Definition: Analyzer.h:180
virtual std::shared_ptr<Analyzer::Expr> Analyzer::Expr::normalize_simple_predicate ( int &  rte_idx) const
inlinevirtual

Reimplemented in Analyzer::BinOper.

Definition at line 95 of file Analyzer.h.

95  {
96  rte_idx = -1;
97  return nullptr;
98  }
virtual void Analyzer::Expr::print ( ) const
inlinevirtual

Definition at line 154 of file Analyzer.h.

References toString().

154 { std::cout << toString(); }
virtual std::string toString() const =0

+ Here is the call graph for this function:

virtual std::shared_ptr<Analyzer::Expr> Analyzer::Expr::rewrite_agg_to_var ( const std::vector< std::shared_ptr< TargetEntry >> &  tlist) const
inlinevirtual
virtual std::shared_ptr<Analyzer::Expr> Analyzer::Expr::rewrite_with_child_targetlist ( const std::vector< std::shared_ptr< TargetEntry >> &  tlist) const
inlinevirtual
virtual std::shared_ptr<Analyzer::Expr> Analyzer::Expr::rewrite_with_targetlist ( const std::vector< std::shared_ptr< TargetEntry >> &  tlist) const
inlinevirtual
void Analyzer::Expr::set_contains_agg ( bool  a)
inline

Definition at line 82 of file Analyzer.h.

References anonymous_namespace{Utm.h}::a, and contains_agg.

82 { contains_agg = a; }
constexpr double a
Definition: Utm.h:32
bool contains_agg
Definition: Analyzer.h:181
void Analyzer::Expr::set_type_info ( const SQLTypeInfo ti)
inline

Definition at line 80 of file Analyzer.h.

References type_info.

Referenced by anonymous_namespace{RelAlgExecutor.cpp}::anonymous_namespace{RelAlgExecutor.cpp}::conditionally_change_arg_to_int_type().

80 { type_info = ti; }
SQLTypeInfo type_info
Definition: Analyzer.h:180

+ Here is the caller graph for this function:

Member Data Documentation

SQLTypeInfo Analyzer::Expr::type_info
protected

Definition at line 180 of file Analyzer.h.

Referenced by add_cast(), Analyzer::Constant::add_cast(), Analyzer::UOper::add_cast(), Analyzer::CaseExpr::add_cast(), Analyzer::Constant::cast_from_string(), Analyzer::Constant::cast_number(), Analyzer::Constant::cast_string(), Analyzer::Constant::cast_to_string(), Analyzer::Constant::Constant(), decompress(), Analyzer::ColumnVar::deep_copy(), Analyzer::Var::deep_copy(), Analyzer::Constant::deep_copy(), Analyzer::UOper::deep_copy(), Analyzer::BinOper::deep_copy(), Analyzer::AggExpr::deep_copy(), Analyzer::CaseExpr::deep_copy(), Analyzer::ExtractExpr::deep_copy(), Analyzer::DateaddExpr::deep_copy(), Analyzer::DatediffExpr::deep_copy(), Analyzer::DatetruncExpr::deep_copy(), Analyzer::FunctionOper::deep_copy(), Analyzer::FunctionOperWithCustomTypeHandling::deep_copy(), Analyzer::WindowFunction::deep_copy(), Analyzer::ArrayExpr::deep_copy(), Analyzer::GeoUOper::deep_copy(), Analyzer::GeoBinOper::deep_copy(), Analyzer::GeoConstant::deep_copy(), Analyzer::GeoOperator::deep_copy(), Analyzer::GeoTransformOperator::deep_copy(), Analyzer::Constant::do_cast(), Analyzer::ColumnVar::get_compression(), get_type_info(), Analyzer::ColumnVar::group_predicates(), Analyzer::GeoConstant::makePhysicalConstant(), Analyzer::BinOper::normalize_simple_predicate(), Analyzer::Constant::operator==(), Analyzer::FunctionOper::operator==(), Analyzer::FunctionOperWithCustomTypeHandling::operator==(), Analyzer::GeoConstant::operator==(), Analyzer::GeoConstant::physicalCols(), Analyzer::UOper::rewrite_agg_to_var(), Analyzer::BinOper::rewrite_agg_to_var(), Analyzer::CaseExpr::rewrite_agg_to_var(), Analyzer::ExtractExpr::rewrite_agg_to_var(), Analyzer::DateaddExpr::rewrite_agg_to_var(), Analyzer::DatediffExpr::rewrite_agg_to_var(), Analyzer::DatetruncExpr::rewrite_agg_to_var(), Analyzer::UOper::rewrite_with_child_targetlist(), Analyzer::BinOper::rewrite_with_child_targetlist(), Analyzer::AggExpr::rewrite_with_child_targetlist(), Analyzer::CaseExpr::rewrite_with_child_targetlist(), Analyzer::ExtractExpr::rewrite_with_child_targetlist(), Analyzer::DateaddExpr::rewrite_with_child_targetlist(), Analyzer::DatediffExpr::rewrite_with_child_targetlist(), Analyzer::DatetruncExpr::rewrite_with_child_targetlist(), Analyzer::UOper::rewrite_with_targetlist(), Analyzer::BinOper::rewrite_with_targetlist(), Analyzer::CaseExpr::rewrite_with_targetlist(), Analyzer::ExtractExpr::rewrite_with_targetlist(), Analyzer::DateaddExpr::rewrite_with_targetlist(), Analyzer::DatediffExpr::rewrite_with_targetlist(), Analyzer::DatetruncExpr::rewrite_with_targetlist(), Analyzer::Constant::set_null_value(), set_type_info(), Analyzer::ColumnVar::toString(), Analyzer::Constant::toString(), Analyzer::UOper::toString(), and Analyzer::Constant::~Constant().


The documentation for this class was generated from the following files: