[refactor](exec) replace the single pointer with an array of 'conjuncts' in ExecNode (#19758)
Refactoring the filtering conditions in the current ExecNode from an expression tree to an array can simplify the process of adding runtime filters. It eliminates the need for complex merge operations and removes the requirement for the frontend to combine expressions into a single entity. By representing the filtering conditions as an array, each condition can be treated individually, making it easier to add runtime filters without the need for complex merging logic. The array can store the individual conditions, and the runtime filter logic can iterate through the array to apply the filters as needed. This refactoring simplifies the codebase, improves readability, and reduces the complexity associated with handling filtering conditions and adding runtime filters. It separates the conditions into discrete entities, enabling more straightforward manipulation and management within the execution node.
This commit is contained in:
@ -81,7 +81,7 @@ public:
|
||||
std::string name() const { return _fn_name; }
|
||||
bool eos() const { return _eos; }
|
||||
|
||||
void set_vexpr_context(VExprContext* vexpr_context) { _vexpr_context = vexpr_context; }
|
||||
void set_expr_context(const VExprContextSPtr& expr_context) { _expr_context = expr_context; }
|
||||
void set_nullable() { _is_nullable = true; }
|
||||
|
||||
bool is_outer() const { return _is_outer; }
|
||||
@ -97,7 +97,7 @@ public:
|
||||
|
||||
protected:
|
||||
std::string _fn_name;
|
||||
VExprContext* _vexpr_context = nullptr;
|
||||
VExprContextSPtr _expr_context = nullptr;
|
||||
// true if there is no more data can be read from this function.
|
||||
bool _eos = false;
|
||||
// the position of current cursor
|
||||
|
||||
Reference in New Issue
Block a user