Skip to content

Commit

Permalink
fix a bug that cause panic on loop join (#20826)
Browse files Browse the repository at this point in the history
fix a bug that cause panic on loop join

Approved by: @aunjgr, @sukki37
  • Loading branch information
badboynt1 authored Dec 19, 2024
1 parent 8e80c44 commit 597ca51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sql/colexec/loopjoin/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (loopJoin *LoopJoin) Call(proc *process.Process) (vm.CallResult, error) {
}

case Probe:
if ctr.inbat == nil {
if ctr.inbat == nil || ctr.inbat.IsEmpty() {
input, err = vm.ChildrenCall(loopJoin.GetChildren(0), proc, analyzer)
if err != nil {
return result, err
Expand Down

0 comments on commit 597ca51

Please sign in to comment.