OmniSciDB  c1a53651b2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RelCompound Class Reference

#include <RelAlgDag.h>

+ Inheritance diagram for RelCompound:
+ Collaboration diagram for RelCompound:

Public Member Functions

 RelCompound (const TableDescriptor *td, const Catalog_Namespace::Catalog *catalog)
 
 filter_expr_ (std::move(filter_expr))
 
 groupby_count_ (groupby_count)
 
 fields_ (fields)
 
 is_agg_ (is_agg)
 
 scalar_sources_ (std::move(scalar_sources))
 
 target_exprs_ (target_exprs)
 
 hint_applied_ (false)
 
 hints_ (std::make_unique< Hints >())
 
 RelCompound (RelCompound const &)
 
void replaceInput (std::shared_ptr< const RelAlgNode > old_input, std::shared_ptr< const RelAlgNode > input) override
 
size_t size () const override
 
const RexScalargetFilterExpr () const
 
void setFilterExpr (std::unique_ptr< const RexScalar > &new_expr)
 
const RexgetTargetExpr (const size_t i) const
 
const std::vector< std::string > & getFields () const
 
const std::string getFieldName (const size_t i) const
 
void setFields (std::vector< std::string > &&fields)
 
const size_t getScalarSourcesSize () const
 
const RexScalargetScalarSource (const size_t i) const
 
void setScalarSources (std::vector< std::unique_ptr< const RexScalar >> &new_sources)
 
const size_t getGroupByCount () const
 
bool isAggregate () const
 
size_t getAggExprSize () const
 
const RexAgggetAggExpr (size_t i) const
 
std::string toString (RelRexToStringConfig config=RelRexToStringConfig::defaults()) const override
 
size_t toHash () const override
 
std::shared_ptr< RelAlgNodedeepCopy () const override
 
void addHint (const ExplainedQueryHint &hint_explained)
 
const bool hasHintEnabled (QueryHint candidate_hint) const
 
const ExplainedQueryHintgetHintInfo (QueryHint hint) const
 
bool hasDeliveredHint ()
 
HintsgetDeliveredHints ()
 
- Public Member Functions inherited from RelAlgNode
 RelAlgNode (RelAlgInputs inputs={})
 
virtual ~RelAlgNode ()
 
void resetQueryExecutionState ()
 
void setContextData (const RaExecutionDesc *context_data) const
 
void setOutputMetainfo (std::vector< TargetMetaInfo > targets_metainfo) const
 
void setQueryPlanDag (const std::string &extracted_query_plan_dag) const
 
std::string getQueryPlanDag () const
 
size_t getQueryPlanDagHash () const
 
const std::vector
< TargetMetaInfo > & 
getOutputMetainfo () const
 
unsigned getId () const
 
void setIdInPlanTree (size_t id) const
 
std::optional< size_t > getIdInPlanTree () const
 
bool hasContextData () const
 
const RaExecutionDescgetContextData () const
 
const size_t inputCount () const
 
const RelAlgNodegetInput (const size_t idx) const
 
std::shared_ptr< const RelAlgNodegetAndOwnInput (const size_t idx) const
 
void addManagedInput (std::shared_ptr< const RelAlgNode > input)
 
bool hasInput (const RelAlgNode *needle) const
 
void setRelNodeDagId (const size_t id) const
 
size_t getRelNodeDagId () const
 
bool isNop () const
 
void markAsNop ()
 
void clearContextData () const
 
- Public Member Functions inherited from ModifyManipulationTarget
 ModifyManipulationTarget (bool const update_via_select=false, bool const delete_via_select=false, bool const varlen_update_required=false, TableDescriptor const *table_descriptor=nullptr, ColumnNameList target_columns=ColumnNameList(), const Catalog_Namespace::Catalog *catalog=nullptr)
 
void setUpdateViaSelectFlag (bool required) const
 
void setDeleteViaSelectFlag (bool required) const
 
void setVarlenUpdateRequired (bool required) const
 
void forceRowwiseOutput () const
 
TableDescriptor const * getModifiedTableDescriptor () const
 
TableDescriptor const * getTableDescriptor () const
 
void setModifiedTableDescriptor (TableDescriptor const *td) const
 
const Catalog_Namespace::CataloggetModifiedTableCatalog () const
 
void setModifiedTableCatalog (const Catalog_Namespace::Catalog *catalog) const
 
auto const isUpdateViaSelect () const
 
auto const isDeleteViaSelect () const
 
auto const isVarlenUpdateRequired () const
 
auto const isProjectForUpdate () const
 
auto const isRowwiseOutputForced () const
 
void setTargetColumns (ColumnNameList const &target_columns) const
 
ColumnNameList const & getTargetColumns () const
 
void invalidateTargetColumns () const
 
template<typename VALIDATION_FUNCTOR >
bool validateTargetColumns (VALIDATION_FUNCTOR validator) const
 

Public Attributes

 catalog
 
 groupby_count_ {0}
 
 is_agg_ {false}
 
 hint_applied_
 

Private Attributes

std::unique_ptr< const RexScalarfilter_expr_
 
size_t groupby_count_
 
std::vector< std::unique_ptr
< const RexAgg > > 
agg_exprs_
 
std::vector< std::string > fields_
 
bool is_agg_
 
std::vector< std::unique_ptr
< const RexScalar > > 
scalar_sources_
 
std::vector< const Rex * > target_exprs_
 
bool hint_applied_
 
std::unique_ptr< Hintshints_
 

Friends

struct RelAlgDagSerializer
 

Additional Inherited Members

- Static Public Member Functions inherited from RelAlgNode
static void resetRelAlgFirstId () noexcept
 
- Protected Attributes inherited from RelAlgNode
RelAlgInputs inputs_
 
unsigned id_
 
std::optional< size_t > id_in_plan_tree_
 
std::optional< size_t > hash_
 

Detailed Description

Definition at line 1794 of file RelAlgDag.h.

Constructor & Destructor Documentation

RelCompound::RelCompound ( const TableDescriptor td,
const Catalog_Namespace::Catalog catalog 
)
inline

Definition at line 1797 of file RelAlgDag.h.

Referenced by toHash().

1798  : ModifyManipulationTarget(false, false, false, td, {}, catalog)
ModifyManipulationTarget(bool const update_via_select=false, bool const delete_via_select=false, bool const varlen_update_required=false, TableDescriptor const *table_descriptor=nullptr, ColumnNameList target_columns=ColumnNameList(), const Catalog_Namespace::Catalog *catalog=nullptr)
Definition: RelAlgDag.h:1056

+ Here is the caller graph for this function:

RelCompound::RelCompound ( RelCompound const &  rhs)

Definition at line 661 of file RelAlgDag.cpp.

References addHint(), filter_expr_, hint_applied_, hints_, and RexVisitorBase< T >::visit().

662  : RelAlgNode(rhs)
664  , groupby_count_(rhs.groupby_count_)
665  , agg_exprs_(copyAggExprs(rhs.agg_exprs_))
666  , fields_(rhs.fields_)
667  , is_agg_(rhs.is_agg_)
668  , scalar_sources_(copyRexScalars(rhs.scalar_sources_))
671  rhs.agg_exprs_,
672  rhs.scalar_sources_,
673  rhs.target_exprs_))
674  , hint_applied_(false)
675  , hints_(std::make_unique<Hints>()) {
676  RexDeepCopyVisitor copier;
677  filter_expr_ = rhs.filter_expr_ ? copier.visit(rhs.filter_expr_.get()) : nullptr;
678  if (rhs.hint_applied_) {
679  for (auto const& kv : *rhs.hints_) {
680  addHint(kv.second);
681  }
682  }
683 }
RelAlgNode(RelAlgInputs inputs={})
Definition: RelAlgDag.h:840
void addHint(const ExplainedQueryHint &hint_explained)
Definition: RelAlgDag.h:1888
std::vector< std::unique_ptr< const RexScalar > > scalar_sources_
Definition: RelAlgDag.h:1920
virtual T visit(const RexScalar *rex_scalar) const
Definition: RexVisitor.h:27
std::vector< std::string > fields_
Definition: RelAlgDag.h:1917
std::vector< std::unique_ptr< const RexScalar > > copyRexScalars(std::vector< std::unique_ptr< const RexScalar >> const &scalar_sources)
Definition: RelAlgDag.cpp:626
std::vector< const Rex * > remapTargetPointers(std::vector< std::unique_ptr< const RexAgg >> const &agg_exprs_new, std::vector< std::unique_ptr< const RexScalar >> const &scalar_sources_new, std::vector< std::unique_ptr< const RexAgg >> const &agg_exprs_old, std::vector< std::unique_ptr< const RexScalar >> const &scalar_sources_old, std::vector< const Rex * > const &target_exprs_old)
Definition: RelAlgDag.cpp:637
std::vector< const Rex * > target_exprs_
Definition: RelAlgDag.h:1922
std::unique_ptr< Hints > hints_
Definition: RelAlgDag.h:1924
std::vector< std::unique_ptr< const RexAgg > > agg_exprs_
Definition: RelAlgDag.h:1916
std::unique_ptr< const RexScalar > filter_expr_
Definition: RelAlgDag.h:1914
std::vector< std::unique_ptr< const RexAgg > > copyAggExprs(std::vector< std::unique_ptr< const RexAgg >> const &agg_exprs)
Definition: RelAlgDag.cpp:616
ModifyManipulationTarget(bool const update_via_select=false, bool const delete_via_select=false, bool const varlen_update_required=false, TableDescriptor const *table_descriptor=nullptr, ColumnNameList target_columns=ColumnNameList(), const Catalog_Namespace::Catalog *catalog=nullptr)
Definition: RelAlgDag.h:1056

+ Here is the call graph for this function:

Member Function Documentation

void RelCompound::addHint ( const ExplainedQueryHint hint_explained)
inline

Definition at line 1888 of file RelAlgDag.h.

References ExplainedQueryHint::getHint(), hint_applied_, and hints_.

Referenced by RelCompound().

1888  {
1889  if (!hint_applied_) {
1890  hint_applied_ = true;
1891  }
1892  hints_->emplace(hint_explained.getHint(), hint_explained);
1893  }
std::unique_ptr< Hints > hints_
Definition: RelAlgDag.h:1924
const QueryHint getHint() const
Definition: QueryHint.h:154

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::shared_ptr<RelAlgNode> RelCompound::deepCopy ( ) const
inlineoverridevirtual

Implements RelAlgNode.

Definition at line 1884 of file RelAlgDag.h.

1884  {
1885  return std::make_shared<RelCompound>(*this);
1886  }
RelCompound::fields_ ( fields  )
RelCompound::filter_expr_ ( std::  movefilter_expr)
const RexAgg* RelCompound::getAggExpr ( size_t  i) const
inline

Definition at line 1877 of file RelAlgDag.h.

References agg_exprs_.

1877 { return agg_exprs_[i].get(); }
std::vector< std::unique_ptr< const RexAgg > > agg_exprs_
Definition: RelAlgDag.h:1916
size_t RelCompound::getAggExprSize ( ) const
inline

Definition at line 1875 of file RelAlgDag.h.

References agg_exprs_.

1875 { return agg_exprs_.size(); }
std::vector< std::unique_ptr< const RexAgg > > agg_exprs_
Definition: RelAlgDag.h:1916
Hints* RelCompound::getDeliveredHints ( )
inline

Definition at line 1911 of file RelAlgDag.h.

References hints_.

Referenced by anonymous_namespace{RelAlgDag.cpp}::handle_query_hint().

1911 { return hints_.get(); }
std::unique_ptr< Hints > hints_
Definition: RelAlgDag.h:1924

+ Here is the caller graph for this function:

const std::string RelCompound::getFieldName ( const size_t  i) const
inline

Definition at line 1856 of file RelAlgDag.h.

References fields_.

1856 { return fields_[i]; }
std::vector< std::string > fields_
Definition: RelAlgDag.h:1917
const std::vector<std::string>& RelCompound::getFields ( ) const
inline

Definition at line 1854 of file RelAlgDag.h.

References fields_.

1854 { return fields_; }
std::vector< std::string > fields_
Definition: RelAlgDag.h:1917
const RexScalar* RelCompound::getFilterExpr ( ) const
inline

Definition at line 1846 of file RelAlgDag.h.

References filter_expr_.

Referenced by anonymous_namespace{RelAlgExecutor.cpp}::get_used_inputs(), anonymous_namespace{RelAlgExecutor.cpp}::translate_quals(), RelRexDagVisitor::visit(), and anonymous_namespace{QueryPhysicalInputsCollector.cpp}::RelAlgPhysicalInputsVisitor::visitCompound().

1846 { return filter_expr_.get(); }
std::unique_ptr< const RexScalar > filter_expr_
Definition: RelAlgDag.h:1914

+ Here is the caller graph for this function:

const size_t RelCompound::getGroupByCount ( ) const
inline

Definition at line 1871 of file RelAlgDag.h.

References groupby_count_.

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

1871 { return groupby_count_; }

+ Here is the caller graph for this function:

const ExplainedQueryHint& RelCompound::getHintInfo ( QueryHint  hint) const
inline

Definition at line 1902 of file RelAlgDag.h.

References CHECK, hasHintEnabled(), hint_applied_, and hints_.

1902  {
1904  CHECK(!hints_->empty());
1905  CHECK(hasHintEnabled(hint));
1906  return hints_->at(hint);
1907  }
std::unique_ptr< Hints > hints_
Definition: RelAlgDag.h:1924
#define CHECK(condition)
Definition: Logger.h:291
const bool hasHintEnabled(QueryHint candidate_hint) const
Definition: RelAlgDag.h:1895

+ Here is the call graph for this function:

const RexScalar* RelCompound::getScalarSource ( const size_t  i) const
inline

Definition at line 1862 of file RelAlgDag.h.

References scalar_sources_.

Referenced by anonymous_namespace{RelAlgExecutor.cpp}::get_used_inputs(), anonymous_namespace{RelAlgExecutor.cpp}::scalar_at(), RelRexDagVisitor::visit(), and anonymous_namespace{QueryPhysicalInputsCollector.cpp}::RelAlgPhysicalInputsVisitor::visitCompound().

1862  {
1863  return scalar_sources_[i].get();
1864  }
std::vector< std::unique_ptr< const RexScalar > > scalar_sources_
Definition: RelAlgDag.h:1920

+ Here is the caller graph for this function:

const size_t RelCompound::getScalarSourcesSize ( ) const
inline

Definition at line 1860 of file RelAlgDag.h.

References scalar_sources_.

Referenced by anonymous_namespace{RelAlgExecutor.cpp}::get_scalar_sources_size(), anonymous_namespace{RelAlgExecutor.cpp}::get_used_inputs(), RelRexDagVisitor::visit(), and anonymous_namespace{QueryPhysicalInputsCollector.cpp}::RelAlgPhysicalInputsVisitor::visitCompound().

1860 { return scalar_sources_.size(); }
std::vector< std::unique_ptr< const RexScalar > > scalar_sources_
Definition: RelAlgDag.h:1920

+ Here is the caller graph for this function:

const Rex* RelCompound::getTargetExpr ( const size_t  i) const
inline

Definition at line 1852 of file RelAlgDag.h.

References target_exprs_.

Referenced by anonymous_namespace{RelAlgExecutor.cpp}::translate_targets(), and QueryPlanDagChecker::visit().

1852 { return target_exprs_[i]; }
std::vector< const Rex * > target_exprs_
Definition: RelAlgDag.h:1922

+ Here is the caller graph for this function:

RelCompound::groupby_count_ ( groupby_count  )
bool RelCompound::hasDeliveredHint ( )
inline

Definition at line 1909 of file RelAlgDag.h.

References hints_.

1909 { return !hints_->empty(); }
std::unique_ptr< Hints > hints_
Definition: RelAlgDag.h:1924
const bool RelCompound::hasHintEnabled ( QueryHint  candidate_hint) const
inline

Definition at line 1895 of file RelAlgDag.h.

References hint_applied_, and hints_.

Referenced by getHintInfo().

1895  {
1896  if (hint_applied_ && !hints_->empty()) {
1897  return hints_->find(candidate_hint) != hints_->end();
1898  }
1899  return false;
1900  }
std::unique_ptr< Hints > hints_
Definition: RelAlgDag.h:1924

+ Here is the caller graph for this function:

RelCompound::hint_applied_ ( false  )
RelCompound::hints_ ( std::make_unique< Hints ())
inline

Definition at line 1832 of file RelAlgDag.h.

References agg_exprs_, and CHECK_EQ.

1832  {
1833  CHECK_EQ(fields.size(), target_exprs.size());
1834  for (auto agg_expr : agg_exprs) {
1835  agg_exprs_.emplace_back(agg_expr);
1836  }
1837  }
#define CHECK_EQ(x, y)
Definition: Logger.h:301
std::vector< std::unique_ptr< const RexAgg > > agg_exprs_
Definition: RelAlgDag.h:1916
RelCompound::is_agg_ ( is_agg  )
bool RelCompound::isAggregate ( ) const
inline

Definition at line 1873 of file RelAlgDag.h.

References is_agg_.

Referenced by RelAlgExecutor::executeCompound(), anonymous_namespace{RelAlgExecutor.cpp}::translate_groupby_exprs(), and QueryPlanDagChecker::visit().

1873 { return is_agg_; }

+ Here is the caller graph for this function:

void RelCompound::replaceInput ( std::shared_ptr< const RelAlgNode old_input,
std::shared_ptr< const RelAlgNode input 
)
overridevirtual

Reimplemented from RelAlgNode.

Definition at line 543 of file RelAlgDag.cpp.

References filter_expr_, RelAlgNode::replaceInput(), and scalar_sources_.

544  {
545  RelAlgNode::replaceInput(old_input, input);
546  RexRebindInputsVisitor rebind_inputs(old_input.get(), input.get());
547  for (const auto& scalar_source : scalar_sources_) {
548  rebind_inputs.visit(scalar_source.get());
549  }
550  if (filter_expr_) {
551  rebind_inputs.visit(filter_expr_.get());
552  }
553 }
std::vector< std::unique_ptr< const RexScalar > > scalar_sources_
Definition: RelAlgDag.h:1920
virtual void replaceInput(std::shared_ptr< const RelAlgNode > old_input, std::shared_ptr< const RelAlgNode > input)
Definition: RelAlgDag.h:915
std::unique_ptr< const RexScalar > filter_expr_
Definition: RelAlgDag.h:1914

+ Here is the call graph for this function:

RelCompound::scalar_sources_ ( std::  movescalar_sources)
void RelCompound::setFields ( std::vector< std::string > &&  fields)
inline

Definition at line 1858 of file RelAlgDag.h.

References fields_.

1858 { fields_ = std::move(fields); }
std::vector< std::string > fields_
Definition: RelAlgDag.h:1917
void RelCompound::setFilterExpr ( std::unique_ptr< const RexScalar > &  new_expr)
inline

Definition at line 1848 of file RelAlgDag.h.

References filter_expr_.

1848  {
1849  filter_expr_ = std::move(new_expr);
1850  }
std::unique_ptr< const RexScalar > filter_expr_
Definition: RelAlgDag.h:1914
void RelCompound::setScalarSources ( std::vector< std::unique_ptr< const RexScalar >> &  new_sources)
inline

Definition at line 1866 of file RelAlgDag.h.

References CHECK_EQ, and scalar_sources_.

1866  {
1867  CHECK_EQ(new_sources.size(), scalar_sources_.size());
1868  scalar_sources_ = std::move(new_sources);
1869  }
#define CHECK_EQ(x, y)
Definition: Logger.h:301
std::vector< std::unique_ptr< const RexScalar > > scalar_sources_
Definition: RelAlgDag.h:1920
size_t RelCompound::size ( ) const
inlineoverridevirtual

Implements RelAlgNode.

Definition at line 1844 of file RelAlgDag.h.

References target_exprs_.

Referenced by RelAlgExecutor::createCompoundWorkUnit(), anonymous_namespace{RelAlgExecutor.cpp}::translate_targets(), and QueryPlanDagChecker::visit().

1844 { return target_exprs_.size(); }
std::vector< const Rex * > target_exprs_
Definition: RelAlgDag.h:1922

+ Here is the caller graph for this function:

RelCompound::target_exprs_ ( target_exprs  )
size_t RelCompound::toHash ( ) const
overridevirtual

Implements RelAlgNode.

Definition at line 3427 of file RelAlgDag.cpp.

References agg_exprs_, fields_, filter_expr_, groupby_count_, RelAlgNode::hash_, HASH_N, is_agg_, RelCompound(), scalar_sources_, target_exprs_, and toString().

3427  {
3428  if (!hash_) {
3429  hash_ = typeid(RelCompound).hash_code();
3430  boost::hash_combine(*hash_, filter_expr_ ? filter_expr_->toHash() : HASH_N);
3431  boost::hash_combine(*hash_, is_agg_);
3432  for (auto& target_expr : target_exprs_) {
3433  if (auto rex_scalar = dynamic_cast<const RexScalar*>(target_expr)) {
3434  boost::hash_combine(*hash_, rex_scalar->toHash());
3435  }
3436  }
3437  for (auto& agg_expr : agg_exprs_) {
3438  boost::hash_combine(*hash_, agg_expr->toHash());
3439  }
3440  for (auto& scalar_source : scalar_sources_) {
3441  boost::hash_combine(*hash_, scalar_source->toHash());
3442  }
3443  boost::hash_combine(*hash_, groupby_count_);
3444  boost::hash_combine(*hash_, ::toString(fields_));
3445  }
3446  return *hash_;
3447 }
RelCompound(const TableDescriptor *td, const Catalog_Namespace::Catalog *catalog)
Definition: RelAlgDag.h:1797
std::string toString(RelRexToStringConfig config=RelRexToStringConfig::defaults()) const override
Definition: RelAlgDag.cpp:3401
std::vector< std::unique_ptr< const RexScalar > > scalar_sources_
Definition: RelAlgDag.h:1920
static auto const HASH_N
Definition: RelAlgDag.h:44
std::vector< std::string > fields_
Definition: RelAlgDag.h:1917
std::vector< const Rex * > target_exprs_
Definition: RelAlgDag.h:1922
std::optional< size_t > hash_
Definition: RelAlgDag.h:955
std::vector< std::unique_ptr< const RexAgg > > agg_exprs_
Definition: RelAlgDag.h:1916
std::unique_ptr< const RexScalar > filter_expr_
Definition: RelAlgDag.h:1914

+ Here is the call graph for this function:

std::string RelCompound::toString ( RelRexToStringConfig  config = RelRexToStringConfig::defaults()) const
overridevirtual

Implements RelAlgNode.

Definition at line 3401 of file RelAlgDag.cpp.

References agg_exprs_, cat(), fields_, filter_expr_, groupby_count_, is_agg_, scalar_sources_, target_exprs_, to_string(), and typeName().

Referenced by toHash().

3401  {
3402  auto ret = cat(::typeName(this),
3403  ", filter_expr=",
3404  (filter_expr_ ? filter_expr_->toString(config) : "null"),
3405  ", target_exprs=");
3406  for (auto& expr : target_exprs_) {
3407  ret += expr->toString(config) + " ";
3408  }
3409  ret += ", agg_exps=";
3410  for (auto& expr : agg_exprs_) {
3411  ret += expr->toString(config) + " ";
3412  }
3413  ret += ", scalar_sources=";
3414  for (auto& expr : scalar_sources_) {
3415  ret += expr->toString(config) + " ";
3416  }
3417  return cat(ret,
3418  ", ",
3420  ", ",
3421  ", fields=",
3422  ::toString(fields_),
3423  ", is_agg=",
3425 }
std::string cat(Ts &&...args)
std::string toString(RelRexToStringConfig config=RelRexToStringConfig::defaults()) const override
Definition: RelAlgDag.cpp:3401
std::vector< std::unique_ptr< const RexScalar > > scalar_sources_
Definition: RelAlgDag.h:1920
std::string to_string(char const *&&v)
std::vector< std::string > fields_
Definition: RelAlgDag.h:1917
std::vector< const Rex * > target_exprs_
Definition: RelAlgDag.h:1922
std::vector< std::unique_ptr< const RexAgg > > agg_exprs_
Definition: RelAlgDag.h:1916
std::unique_ptr< const RexScalar > filter_expr_
Definition: RelAlgDag.h:1914
std::string typeName(const T *v)
Definition: toString.h:103

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend struct RelAlgDagSerializer
friend

Definition at line 1926 of file RelAlgDag.h.

Member Data Documentation

std::vector<std::unique_ptr<const RexAgg> > RelCompound::agg_exprs_
private

Definition at line 1916 of file RelAlgDag.h.

Referenced by getAggExpr(), getAggExprSize(), hints_(), toHash(), and toString().

RelCompound::catalog

Definition at line 1798 of file RelAlgDag.h.

std::vector<std::string> RelCompound::fields_
private

Definition at line 1917 of file RelAlgDag.h.

Referenced by getFieldName(), getFields(), setFields(), toHash(), and toString().

std::unique_ptr<const RexScalar> RelCompound::filter_expr_
private

Definition at line 1914 of file RelAlgDag.h.

Referenced by getFilterExpr(), RelCompound(), replaceInput(), setFilterExpr(), toHash(), and toString().

RelCompound::groupby_count_ {0}

Definition at line 1799 of file RelAlgDag.h.

Referenced by getGroupByCount(), toHash(), and toString().

size_t RelCompound::groupby_count_
private

Definition at line 1915 of file RelAlgDag.h.

RelCompound::hint_applied_
Initial value:
{false} {}
RelCompound(std::unique_ptr<const RexScalar>& filter_expr,
const std::vector<const Rex*>& target_exprs,
const size_t groupby_count,
const std::vector<const RexAgg*>& agg_exprs,
const std::vector<std::string>& fields,
std::vector<std::unique_ptr<const RexScalar>>& scalar_sources,
const bool is_agg,
bool update_disguised_as_select = false,
bool delete_disguised_as_select = false,
bool varlen_update_required = false,
TableDescriptor const* manipulation_target_table = nullptr,
ColumnNameList target_columns = ColumnNameList(),
: ModifyManipulationTarget(update_disguised_as_select,
delete_disguised_as_select,
varlen_update_required,
manipulation_target_table,
target_columns,

Definition at line 1801 of file RelAlgDag.h.

Referenced by addHint(), getHintInfo(), hasHintEnabled(), and RelCompound().

bool RelCompound::hint_applied_
private

Definition at line 1923 of file RelAlgDag.h.

std::unique_ptr<Hints> RelCompound::hints_
private
RelCompound::is_agg_ {false}

Definition at line 1800 of file RelAlgDag.h.

Referenced by isAggregate(), toHash(), and toString().

bool RelCompound::is_agg_
private

Definition at line 1918 of file RelAlgDag.h.

std::vector<std::unique_ptr<const RexScalar> > RelCompound::scalar_sources_
private
std::vector<const Rex*> RelCompound::target_exprs_
private

Definition at line 1922 of file RelAlgDag.h.

Referenced by getTargetExpr(), size(), toHash(), and toString().


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