Skip to content

Commit

Permalink
planner: check error when building INLJ executor (#39756)
Browse files Browse the repository at this point in the history
close #39724
  • Loading branch information
qw4990 authored Dec 8, 2022
1 parent a8fff0f commit c65a93a
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 @@ -3285,7 +3285,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 c65a93a

Please sign in to comment.