Skip to content

Commit c65a93a

Browse files
authored
planner: check error when building INLJ executor (#39756)
close #39724
1 parent a8fff0f commit c65a93a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

executor/builder.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -3285,7 +3285,11 @@ func (b *executorBuilder) buildIndexLookUpMergeJoin(v *plannercore.PhysicalIndex
32853285
}
32863286

32873287
func (b *executorBuilder) buildIndexNestedLoopHashJoin(v *plannercore.PhysicalIndexHashJoin) Executor {
3288-
e := b.buildIndexLookUpJoin(&(v.PhysicalIndexJoin)).(*IndexLookUpJoin)
3288+
join := b.buildIndexLookUpJoin(&(v.PhysicalIndexJoin))
3289+
if b.err != nil {
3290+
return nil
3291+
}
3292+
e := join.(*IndexLookUpJoin)
32893293
idxHash := &IndexNestedLoopHashJoin{
32903294
IndexLookUpJoin: *e,
32913295
keepOuterOrder: v.KeepOuterOrder,

0 commit comments

Comments
 (0)