[CP] In a multi-level join scenario, batch_rescan cannot be performed when the right branch of NLJ appear to be non-NLJ

This commit is contained in:
yishenglanlingzui
2023-10-10 13:47:36 +00:00
committed by ob-robot
parent a36e27e80b
commit d06948658f
2 changed files with 35 additions and 19 deletions

View File

@ -153,7 +153,7 @@ namespace sql
inline bool can_use_batch_nlj() const { return can_use_batch_nlj_; }
void set_can_use_batch_nlj(bool can_use) { can_use_batch_nlj_ = can_use; }
int check_and_set_use_batch();
int check_if_disable_batch(ObLogicalOperator* root);
int check_if_disable_batch(ObLogicalOperator* root, bool &can_use_batch_nlj);
void set_join_path(JoinPath *path) { join_path_ = path; }
JoinPath *get_join_path() { return join_path_; }
bool is_my_exec_expr(const ObRawExpr *expr);