Commit Graph

98 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
81a93a6977 executor, util: fix UnionScan Next() skip reading data when passed chunk capacity is 0 (#36961)
close pingcap/tidb#36903
2022-08-24 12:38:21 +08:00
1bf64c60f4 *: Refactor FieldType structure (#33569)
close pingcap/tidb#32116
2022-04-26 19:28:51 +08:00
ed489e6f2c executor: fix a bug on generated column cause wrong read result (#33050)
close pingcap/tidb#33038
2022-03-15 21:27:52 +08:00
493eb45c75 *: table partition dynamic prune mode with Physical Table ID from unistore (#31634)
close pingcap/tidb#29851
2022-03-04 01:21:46 +08:00
92c280cfad executor: add trace info for unionScanExec (#32635)
close pingcap/tidb#32631
2022-02-28 16:15:44 +08:00
27f7b592b1 executor: enable index_merge used in transaction. (#29875) 2021-12-08 12:25:56 +08:00
d3c6045f63 *: replace compareDatum by compare (#30421) 2021-12-06 20:41:56 +08:00
2409c83381 *: fix staled table cache usage inside a transaction (#29443) 2021-11-11 18:23:05 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +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
35eded065e *: fix structcheck lint warnings (#23062) 2021-03-24 21:09:37 +08:00
24c9df147d *: refactor table.Table interface, clean up unnecessay methods (#22430) 2021-03-02 19:48:54 +08:00
47a182f76a executor: fix a bug that the generated column doesn't handle bad null value (#20193)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-09-25 15:57:36 +08:00
ce849c3e19 *: remove DirtyDB and DirtyTable to reduce memory usage (#19042) 2020-09-04 16:50:36 +08:00
e356136b72 *: annotate execution info in runtime/trace (#19407)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-27 11:23:36 +08:00
f9fe7798ba Fix error result union scan with apply (#19300) 2020-08-25 13:39:12 +08:00
3df573d2fc planner,executor: use new table partition implementation and fix CI (#18981) 2020-08-06 17:50:40 +08:00
658132fcf3 planner: refactor handle columns (#18391) 2020-07-07 12:26:14 +08:00
3176b00c02 executor: fix the issue that UNIQUE constraint on boolean column results in an incorrect result in a comparison (#17245) 2020-05-20 13:55:18 +08:00
1417ba2288 *: fix a bug that don't handle truncate properly for virtual generated column (#17217) 2020-05-14 20:57:55 +08:00
51dabaabef *: refactor Handle in executor package (#16871) 2020-04-28 21:27:19 +08:00
092dbc0326 executor: remove useless union scan codes (#16683) 2020-04-28 16:46:05 +08:00
fe5334a1ed executor: fix bug for virtual column in transaction (#15011) 2020-03-03 15:18:09 +08:00
174ff27943 *: fix static check issues (#14286) 2020-01-06 16:07:15 +08:00
fe764a97a3 *: only add union scan when dirty table is not empty (#14265) 2019-12-31 13:20:27 +08:00
34b3c9a641 executor: fix data race in GetDirtyTable() (#12767) 2019-10-23 13:57:30 +08:00
fb683bef2c executor: refactor union scan and dirty table (#11702) 2019-09-12 10:00:45 +08:00
d210889a6c *: trace the execution of the insert operation (#11667) 2019-08-09 14:22:03 +08:00
da8e7d267c executor: refactor union_scan executor by using txn_mem_buffer_reader (#10673) 2019-07-30 17:40:33 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
dc378a2cff executor: tiny refactor the runtimeStats collection code (#10917) 2019-06-24 14:09:31 +08:00
8183f35563 executor: tiny clean up (#10875)
code refactor for the tracing related code
2019-06-20 16:35:59 +08:00
421de5ef20 executor,server: re-implement the kill statement by checking the Next() function (#10841) 2019-06-20 11:03:21 +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
e9653675dd *: remove errors.Trace in main handle path (#10033) 2019-04-04 14:27:15 +08:00
0b371ea4fa executor: only use the transaction buffer for union scan (#9428) 2019-03-03 14:54:18 +08:00
8b84b94c96 *: fix union scan for partitioned table (#8871) 2019-02-28 13:43:45 +08:00
5a283a98dd plan/executor: make semi joins null and empty aware (#9051) 2019-02-25 15:42:38 +08:00
ba68605ce6 *: use less memory when many rows inserted in one transaction (#9272) 2019-02-13 11:39:46 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
458c0d1c27 executor: refine explain analyze (#7888) 2018-10-16 20:02:43 +08:00
d21f294393 *: make explain support explain anaylze (#7827) 2018-10-12 20:01:19 +08:00
05b37de16e *: use chunk grow for simple executor (#7540) 2018-09-27 09:07:51 +08:00
b6a540a0f0 reuse chunk to reduce memory usage in union scan (#7717) 2018-09-17 11:34:19 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00