|
35 | 35 | #include "execution/executors/update_executor.h" |
36 | 36 | #include "execution/executors/values_executor.h" |
37 | 37 | #include "execution/plans/filter_plan.h" |
38 | | -#include "execution/plans/init_check_plan.h" |
39 | 38 | #include "execution/plans/mock_scan_plan.h" |
40 | 39 | #include "execution/plans/projection_plan.h" |
41 | 40 | #include "execution/plans/sort_plan.h" |
@@ -100,11 +99,10 @@ auto ExecutorFactory::CreateExecutor(ExecutorContext *exec_ctx, const AbstractPl |
100 | 99 | auto left = ExecutorFactory::CreateExecutor(exec_ctx, nested_loop_join_plan->GetLeftPlan()); |
101 | 100 | auto right = ExecutorFactory::CreateExecutor(exec_ctx, nested_loop_join_plan->GetRightPlan()); |
102 | 101 | if (check_options_set.find(CheckOption::ENABLE_NLJ_CHECK) != check_options_set.end()) { |
103 | | - auto left_init_check_plan = dynamic_cast<const InitCheckPlanNode *>(nested_loop_join_plan->GetLeftPlan().get()); |
104 | | - auto right_init_check_plan = |
105 | | - dynamic_cast<const InitCheckPlanNode *>(nested_loop_join_plan->GetRightPlan().get()); |
106 | | - auto left_check = std::make_unique<InitCheckExecutor>(exec_ctx, left_init_check_plan, std::move(left)); |
107 | | - auto right_check = std::make_unique<InitCheckExecutor>(exec_ctx, right_init_check_plan, std::move(right)); |
| 102 | + auto left_check = |
| 103 | + std::make_unique<InitCheckExecutor>(exec_ctx, nested_loop_join_plan->GetLeftPlan(), std::move(left)); |
| 104 | + auto right_check = |
| 105 | + std::make_unique<InitCheckExecutor>(exec_ctx, nested_loop_join_plan->GetRightPlan(), std::move(right)); |
108 | 106 | exec_ctx->AddCheckExecutor(left_check.get(), right_check.get()); |
109 | 107 | return std::make_unique<NestedLoopJoinExecutor>(exec_ctx, nested_loop_join_plan, std::move(left_check), |
110 | 108 | std::move(right_check)); |
|
0 commit comments