diff --git a/executor/hash_table_test.go b/executor/hash_table_test.go index 50ef8adb72f5e..637673f2b2cc2 100644 --- a/executor/hash_table_test.go +++ b/executor/hash_table_test.go @@ -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) @@ -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)