Skip to content

Commit

Permalink
executor: fix test fail in TestHashRowContainer (pingcap#33895)
Browse files Browse the repository at this point in the history
  • Loading branch information
wshwsh12 authored Apr 13, 2022
1 parent 04420b0 commit ce8cefa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions executor/hash_table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ func testHashRowContainer(t *testing.T, hashFunc func() hash.Hash64, spill bool)
chk1, _ := initBuildChunk(numRows)

hCtx := &hashContext{
allTypes: colTypes,
allTypes: colTypes[1:3],
keyColIdx: []int{1, 2},
}
hCtx.hasNull = make([]bool, numRows)
for i := 0; i < numRows; i++ {
hCtx.hashVals = append(hCtx.hashVals, hashFunc())
}
rowContainer := newHashRowContainer(sctx, 0, hCtx, hCtx.allTypes)
rowContainer := newHashRowContainer(sctx, 0, hCtx, colTypes)
copiedRC = rowContainer.ShallowCopy()
tracker := rowContainer.GetMemTracker()
tracker.SetLabel(memory.LabelForBuildSideResult)
Expand All @@ -150,7 +150,7 @@ func testHashRowContainer(t *testing.T, hashFunc func() hash.Hash64, spill bool)
probeChk, probeColType := initProbeChunk(2)
probeRow := probeChk.GetRow(1)
probeCtx := &hashContext{
allTypes: probeColType,
allTypes: probeColType[1:3],
keyColIdx: []int{1, 2},
}
probeCtx.hasNull = make([]bool, 1)
Expand Down

0 comments on commit ce8cefa

Please sign in to comment.