31 int max_range_table_idx = 0;
32 for (
const auto& expr_component : expr_tuple->
getTuple()) {
34 std::max(max_range_table_idx, visitor.
visit(expr_component.get()));
36 return max_range_table_idx;
39 int aggregateResult(
const int& aggregate,
const int& next_result)
const override {
40 return std::max(aggregate, next_result);
54 for (
const auto& expr_component : expr_tuple->
getTuple()) {
55 const auto component_rte_set = visitor.
visit(expr_component.get());
56 result.insert(component_rte_set.begin(), component_rte_set.end());
62 const std::set<int>& next_result)
const override {
64 result.insert(next_result.begin(), next_result.end());
int aggregateResult(const int &aggregate, const int &next_result) const override
T visit(const Analyzer::Expr *expr) const
const std::vector< std::shared_ptr< Analyzer::Expr > > & getTuple() const
int visitColumnVar(const Analyzer::ColumnVar *column) const override
std::set< int > visitColumnVar(const Analyzer::ColumnVar *column) const override
std::set< int > aggregateResult(const std::set< int > &aggregate, const std::set< int > &next_result) const override
int visitColumnVarTuple(const Analyzer::ExpressionTuple *expr_tuple) const override
std::set< int > visitColumnVarTuple(const Analyzer::ExpressionTuple *expr_tuple) const override
int32_t get_rte_idx() const