Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ouyuanning committed Dec 24, 2024
1 parent d553cac commit 9a881be
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/sql/colexec/dedupjoin/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,14 +453,14 @@ func (ctr *container) probe(bat *batch.Batch, ap *DedupJoin, proc *process.Proce
if rp.Rel == 1 {
//if last index is row_id, meams need fetch right child's partition column
//@FIXME should have better way to get right child's partition column
var srcVec *vector.Vector
if ctr.joinBat1.Vecs[rp.Pos].GetType().Oid == types.T_Rowid {
if err := ctr.rbat.Vecs[j].UnionOne(ctr.joinBat2.Vecs[rp.Pos], 0, proc.Mp()); err != nil {
return err
}
srcVec = ctr.joinBat2.Vecs[rp.Pos]
} else {
if err := ctr.rbat.Vecs[j].UnionOne(ctr.joinBat1.Vecs[rp.Pos], 0, proc.Mp()); err != nil {
return err
}
srcVec = ctr.joinBat1.Vecs[rp.Pos]
}
if err := ctr.rbat.Vecs[j].UnionOne(srcVec, 0, proc.Mp()); err != nil {
return err
}
} else {
if err := ctr.rbat.Vecs[j].UnionOne(bat.Vecs[rp.Pos], int64(i+k), proc.Mp()); err != nil {
Expand Down

0 comments on commit 9a881be

Please sign in to comment.