diff --git a/executor/sort.go b/executor/sort.go index cfc274582f00c..63aa249825563 100644 --- a/executor/sort.go +++ b/executor/sort.go @@ -289,7 +289,6 @@ func (e *SortExec) fetchRowChunks(ctx context.Context) error { } e.rowChunks.Add(chk) if atomic.LoadUint32(&e.exceeded) == 1 { - fmt.Println(e.rowChunks.Len()) err := e.generatePartition() if err != nil { return err diff --git a/executor/sort_test.go b/executor/sort_test.go index 259bf7a48fe98..3f6ad5794bb5e 100644 --- a/executor/sort_test.go +++ b/executor/sort_test.go @@ -51,10 +51,4 @@ func (s *testSuite) TestSortInDisk(c *C) { for i := 0; i < 1024; i++ { c.Assert(result.Rows()[i][0].(string), Equals, fmt.Sprint(i)) } - - tk.MustExec("set @@tidb_mem_quota_query=500;") - result = tk.MustQuery("select * from t order by c1") - for i := 0; i < 1024; i++ { - c.Assert(result.Rows()[i][0].(string), Equals, fmt.Sprint(i)) - } } diff --git a/util/chunk/disk.go b/util/chunk/disk.go index ae33f065c4835..b1a8c707f0ee2 100644 --- a/util/chunk/disk.go +++ b/util/chunk/disk.go @@ -143,11 +143,6 @@ func (l *ListInDisk) NumChunks() int { return len(l.offsets) } -// GetOffsetOfRow returns the offset of a row in the ListInDisk. -func (l *ListInDisk) GetOffsetOfRow(ptr RowPtr) int64 { - return l.offsets[ptr.ChkIdx][ptr.RowIdx] -} - // Close releases the disk resource. func (l *ListInDisk) Close() error { if l.disk != nil {