Skip to content

Commit

Permalink
planner: check error when building INLJ executor (#39756) (#39759)
Browse files Browse the repository at this point in the history
close #39724
  • Loading branch information
ti-chi-bot authored Jan 10, 2023
1 parent 99b2d4c commit 53c5839
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion executor/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -3167,7 +3167,11 @@ func (b *executorBuilder) buildIndexLookUpMergeJoin(v *plannercore.PhysicalIndex
}

func (b *executorBuilder) buildIndexNestedLoopHashJoin(v *plannercore.PhysicalIndexHashJoin) Executor {
e := b.buildIndexLookUpJoin(&(v.PhysicalIndexJoin)).(*IndexLookUpJoin)
join := b.buildIndexLookUpJoin(&(v.PhysicalIndexJoin))
if b.err != nil {
return nil
}
e := join.(*IndexLookUpJoin)
idxHash := &IndexNestedLoopHashJoin{
IndexLookUpJoin: *e,
keepOuterOrder: v.KeepOuterOrder,
Expand Down

0 comments on commit 53c5839

Please sign in to comment.