From 88355a30a4a0a527d8b24bb76d12c5c2f856e50a Mon Sep 17 00:00:00 2001 From: Shenghui Wu <793703860@qq.com> Date: Wed, 13 Apr 2022 11:40:35 +0800 Subject: [PATCH] cherry pick #33895 to release-5.3 Signed-off-by: ti-srebot --- executor/hash_table_serial_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/executor/hash_table_serial_test.go b/executor/hash_table_serial_test.go index 50ef8adb72f5e..637673f2b2cc2 100644 --- a/executor/hash_table_serial_test.go +++ b/executor/hash_table_serial_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)