Skip to content
Snippets Groups Projects
Unverified Commit 740fc55a authored by Yee's avatar Yee Committed by GitHub
Browse files

Fix explain validator subplan generation (#781)


Co-authored-by: default avatarjie.wang <38901892+jievince@users.noreply.github.com>
parent 4493f090
No related branches found
No related tags found
No related merge requests found
...@@ -66,11 +66,9 @@ Status ExplainValidator::validateImpl() { ...@@ -66,11 +66,9 @@ Status ExplainValidator::validateImpl() {
} }
Status ExplainValidator::toPlan() { Status ExplainValidator::toPlan() {
auto subPlanStatus = Planner::toPlan(validator_->getAstContext()); // The execution plan has been generated in validateImpl function
NG_RETURN_IF_ERROR(subPlanStatus); root_ = validator_->root();
auto subPlan = std::move(subPlanStatus).value(); tail_ = validator_->tail();
root_ = subPlan.root;
tail_ = subPlan.tail;
VLOG(1) << "root: " << root_->kind() << " tail: " << tail_->kind(); VLOG(1) << "root: " << root_->kind() << " tail: " << tail_->kind();
return Status::OK(); return Status::OK();
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment