MCPcopy
hub / github.com/pingcap/tidb / generateTableSplitKeyForInt

Function generateTableSplitKeyForInt

pkg/executor/chunk_size_control_test.go:91–97  ·  view source on GitHub ↗
(tid int64, splitNum []int)

Source from the content-addressed store, hash-verified

89}
90
91func generateTableSplitKeyForInt(tid int64, splitNum []int) [][]byte {
92 results := make([][]byte, 0, len(splitNum))
93 for _, num := range splitNum {
94 results = append(results, tablecodec.EncodeRowKey(tid, codec.EncodeInt(nil, int64(num))))
95 }
96 return results
97}
98
99func TestLimitAndTableScan(t *testing.T) {
100 t.Skip("not stable because coprocessor may result in goroutine leak")

Callers 1

TestLimitAndTableScanFunction · 0.85

Calls 2

EncodeRowKeyFunction · 0.92
EncodeIntFunction · 0.92

Tested by

no test coverage detected