Commit Graph

50 Commits

Author SHA1 Message Date
0b3e1e9be0 *: Chunkreuse try reuse chunk in operator (#38607)
close pingcap/tidb#38606
2022-11-04 11:28:00 +08:00
ef95612e84 *: extend the semantic of mem-quota-query to mem-quota-session (#38423)
close pingcap/tidb#38429
2022-11-02 10:45:59 +08:00
d27c706965 util: reduce STW from ReadMemStats (#38632)
close pingcap/tidb#38271
2022-10-26 20:37:56 +08:00
3ef8352a57 util: add tracker tree memory use print (#37310)
close pingcap/tidb#37309
2022-10-14 13:01:51 +08:00
dacedde654 executor: auto adjust GC interval in oom debug mode (#38389)
close pingcap/tidb#38417
2022-10-12 14:59:51 +08:00
bdc6397023 executor: support tidb memory debug mode (#35322)
ref pingcap/tidb#33877
2022-07-13 12:33:06 +08:00
f88dab92f9 util: use generics to implement max/min (#34197)
close pingcap/tidb#34247
2022-05-06 10:08:57 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
a8adc4cf8e *: fix many leaks of the test case (#26909) 2021-08-06 13:55:12 +08:00
abc8f1665f *: optimize for encoding huge plan (#20811) 2020-11-06 10:46:16 +08:00
875cf6dfbb executor: fix analyze update panic cause by duplicate call analyze executor Close method (#20390) 2020-10-12 20:25:18 +08:00
c704b9756e executor: add runtime information for DML statement in explain analyze (#19106) 2020-10-10 13:34:53 +08:00
4755a9b9ef util: revert util/mathutil (#14744) 2020-02-13 11:33:04 +08:00
8e88825f55 Tidy build constraints in mathutil (#14257)
- Rename *_js.go to *_wasm.go to satisfy both wasm/js and wasm/wasi
- Use +build instruction instead of *_GOOS pattern to reduce file

Signed-off-by: lucklove <gnu.crazier@gmail.com>
2019-12-26 21:11:13 +08:00
aa2f716847 executor: avoid ProjectoinExec's goroutine leak (#14127) 2019-12-25 16:51:10 +08:00
8cbacf0d7c wasm: fix compile error for wasm (#14160)
Signed-off-by: 5kbpers <tangminghua@pingcap.com>
2019-12-23 15:17:46 +08:00
304619a184 executor: fix execution info of explain analyze (#11967) 2019-09-02 16:45:35 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
f6be085bc6 executor: tiny refactor the Executor interface (#10846)
Introduce a base() method to get the baseExecutor, so we don't need to add
method from baseExecutor to the Executor interface any more

Before:
```
type Executor interface {
	Open(context.Context) error
	Next(ctx context.Context, req *chunk.RecordBatch) error
	Close() error
	Schema() *expression.Schema

	retTypes() []*types.FieldType
	newFirstChunk() *chunk.Chunk
}
```

After:
```
type Executor interface {
        base() *baseExecutor
	Open(context.Context) error
	Next(ctx context.Context, req *chunk.RecordBatch) error
	Close() error
	Schema() *expression.Schema
}
```
2019-06-19 15:55:28 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
3040788655 *: make errcheck work again (#8795) 2018-12-25 17:16:52 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
59cf3e0663 util/execdetails: fix data race (#8324) 2018-11-15 11:59:46 +08:00
458c0d1c27 executor: refine explain analyze (#7888) 2018-10-16 20:02:43 +08:00
05b37de16e *: use chunk grow for simple executor (#7540) 2018-09-27 09:07:51 +08:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
f170c56c03 executor: remove Next function for ExplainExec (#6002) 2018-03-11 10:31:18 +08:00
e1121814d2 *: don't import golang.org/x/net/context as goctx alias (#5895)
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00
7159dd0ef6 executor: support Chunk for TableScanExec (#5443) 2017-12-22 19:52:43 +08:00
37eb540386 executor: support Chunk for ExplainExec (#5398) 2017-12-14 17:07:44 +08:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
cd5c665c8c executor: use baseExecutor for all Executors (#5087)
Makes it easy to add new method on Executor interface.
2017-11-13 21:06:31 +08:00
c7c248eb91 executor: change struct row to []types.Datum (#4072) 2017-08-09 18:37:57 +08:00
8ebe4c2549 plan, executor, expression: refactor explain (#3809) 2017-07-25 14:12:48 +08:00
ad52a2462c executor: add open inteferce for Executor. (#3221) 2017-05-09 21:13:22 +08:00
461fd98bb0 *: rename the plan interface. (#2547) 2017-01-25 15:10:44 +08:00
fb429408c9 *: make schema as a pointer. (#2533) 2017-01-23 16:23:47 +08:00
2a3426ca9d *: make explain result more clearly. (#2063) 2016-11-23 18:58:12 +08:00
cbf024e8f7 *: clean code. (#1987) 2016-11-10 15:38:22 +08:00
1550e76e6c executor: add comments in executor package. (#1876)
* executor: add comments in executor package.
2016-10-31 10:51:17 +08:00
e33587ed47 support explain (#1632) 2016-08-26 11:19:23 +08:00
e4ac5301ce remove useless code. (#1609) 2016-08-20 16:00:20 +08:00
0450ba0b47 *: unify "See url" format (#1391)
* *: unify "See url" format
2016-07-05 11:21:10 +08:00
a71005710f plan: merge 'optimizer/plan' and 'optimizer' into one package. (#1300) 2016-06-07 20:49:05 +08:00
10359b0052 rewrite executor. (#1294)
* rewrite executor.
2016-06-07 20:32:15 +08:00
dc885f4b9d change plan to DAG mode (#1180)
* change plan to DAG mode

* add error and comment
2016-04-29 15:39:22 +08:00
d5941446c2 table: replace interface{} with Datum in table. 2016-03-02 21:01:20 +08:00
af131d2127 executor: replace Executor interface{} with Datum. 2016-03-02 16:13:25 +08:00
c60122c8ea *: address comments 2016-02-24 20:39:08 +08:00
32c6ee2cbf executor: support Explain 2016-02-24 17:46:59 +08:00