Commit Graph

92 Commits

Author SHA1 Message Date
e63a10e931 Add the check for expression evaluation in some executors (#16339) 2020-04-15 10:46:02 +08:00
0d10f91539 executor: check for null values when comparing different groups during streamAgg (#15742) 2020-03-27 16:42:14 +08:00
0eaa757bd8 executor: log stack info when panic converting to error (#15627) 2020-03-25 17:35:28 +08:00
41142266b2 *: use SetString() for string instead of SetBytes() (#14989) 2020-03-02 15:48:10 +08:00
848dd01b98 executor: consider the collation in vecGroupChecker (#14859) 2020-02-21 14:10:30 +08:00
eb12799152 *: Collation should be set accordingly when setting string datum (#14757) 2020-02-20 23:01:53 +08:00
4755a9b9ef util: revert util/mathutil (#14744) 2020-02-13 11:33:04 +08:00
cfe0c2025f executor: vectorize the merge join executor by vecGroupChecker (#14458) 2020-02-04 15:41:24 +08:00
efd34cb65d executor: add memTracker for aggregation (#13720) 2019-12-25 16:07:09 +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
a1b90715ee executor: fix DATA RACE caused by the vecGroupChecker (#13948) 2019-12-06 18:49:18 +08:00
98519eb30b executor: init the final recv channel of hash agg with enough… (#13811) 2019-12-06 17:06:51 +08:00
cead363ecc executor: apply the vecGroupChecker in window executor (#13852) 2019-12-04 01:18:41 -06:00
6aa9c3f58b executor: make the groupChecker vectorized (#12903) 2019-11-27 07:38:36 -06:00
6a59557500 executor: show operators' concurrency information in results of EXPLAIN ANALYZE (#13539) 2019-11-27 16:46:25 +08:00
5c521c8e43 executor: vectorized calculation the key for the group by items in hash aggregation (#12729) 2019-11-12 17:00:00 +08:00
1016acc1e4 executor: wait all fetchChildData exiting in HashAggExec.Close (#12930) 2019-10-25 20:03:26 +08:00
5564267250 Fix forever hanging when HashAgg is called by apply (#12760) 2019-10-16 20:16:21 +08:00
6d51ad33fd *: Optimize struct memory usage by adjust field order (#11629) 2019-08-13 17:20:53 +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
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13: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
0324cf5d19 executor: reset groupChecker for StreamAggExec when Close (#10615) 2019-05-29 13:55:44 +08:00
27a56180bd *: replace gofail with the new failpoint implementation (#10184) 2019-04-22 13:30:14 +08:00
e9653675dd *: remove errors.Trace in main handle path (#10033) 2019-04-04 14:27:15 +08:00
f738ba24ad executor: replace logger with zap logger (#9521) 2019-03-14 15:14:38 +08:00
2f69a28d74 executor: control Chunk size for StreamAgg&HashAgg (#9512) 2019-03-06 16:44:52 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
3835bef7ae executor: support window func for aggregate without frame clause (#8899) 2019-01-15 15:23:17 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
71088815e7 executor: refine HashAgg.Close when unparallelExec (#8810) 2018-12-27 17:14:04 +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
6fb260f8a6 *: redesign trace statement with json output (#8357) 2018-11-21 13:50:18 +08:00
4ddf316c83 executor: recovery panic in parallel hashagg and projection (#8185) 2018-11-06 16:16:25 +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
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
27047a0e2f executor: remove *MVMap from agg executor (#7541) 2018-09-11 21:31:48 +08:00
4836aa33c3 executor: support new aggregate framework for HashAggExec (#7268) 2018-08-21 15:17:25 +08:00
9eb197f754 executor: remove the old evaluate logic of stream agg (#7251) 2018-08-03 08:34:28 +08:00
06021c7cfe remove types.Row interface (#7170) 2018-07-27 13:45:03 +08:00
e3ba021f5a *: make system variable 'group_concat_max_len' work (#7080) 2018-07-26 20:02:56 +08:00
2fba9931c7 *: remove DatumRow (#7165) 2018-07-26 19:42:58 +08:00