Commit Graph

38 Commits

Author SHA1 Message Date
ab8346e911 stats: limit the number of top-n items (#11906) 2019-08-28 17:23:08 +08:00
0668cae665 executor, stats: extract topn from cm sketch (#11409) 2019-07-29 19:05:19 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
b26cb0d93c stats: fix the index cm sketch for fast analyze (#10839) 2019-06-22 12:55:14 +08:00
f3ab907dcc types: rename CopyRow and CopyDatum to Clone* (#10333) 2019-05-09 19:26:01 +08:00
5fa16a8030 executor: support building stats for fast analyze. (#10258) 2019-04-28 13:49:54 +08:00
7b688eeef7 *: change some call of panic() to error (#10010) 2019-04-08 12:10:49 +08:00
47c78419da statistics: stabilize sort order when computing correlation (#9696) 2019-03-13 15:46:04 +08:00
45f9d6a00f statistics: compute and store column order correlation with handle (#9315) 2019-02-27 11:32:00 +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
edaec7bdaf *: move Statement and RecordSet from ast to sqlexec package (#7970) 2018-10-21 13:21:26 +08:00
25118db843 *: move ast.NewValueExpr to standalone parser_driver package (#7952)
Make the ast package get rid of the dependency of types.Datum
2018-10-19 19:37:55 +08:00
6220692e3b stats: limit the length of sample values (#7931) 2018-10-18 15:30:43 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
357d5df66b remove useless alias (#6473) 2018-05-05 22:36:54 +08:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
501de19821 stats: add average column size for the histogram (#5974) 2018-03-23 13:44:24 +08:00
0553deeb42 *:improve code readability and unified aliases (#5997) 2018-03-15 10:52:36 +08:00
631141b22c *: remove Next function for RecordSet (#6040) 2018-03-13 21:05:10 +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
ecbd60c3ff *: add arguement StatementContext to Encode functions. (#5566) 2018-01-06 17:31:08 +08:00
c45111d9f6 stats: use more compact structure for histograms (#5539)
* stats: use more compact structure for histograms

* address comments

* address comments

* refine code

* address comment
2018-01-05 20:43:01 +08:00
7c23a84a2c server, statistics: add dump_stats api for debug (#5534) 2018-01-03 14:47:56 +08:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
8b15cb52b7 *: move StatementContext to its own package. (#5177) 2017-11-22 00:11:14 +08:00
cf5a22b5fd *: replace *ast.Row with types.Row (#5124) 2017-11-16 18:36:28 +08:00
30a080db5c *: build and use count-min sketch (#5042) 2017-11-08 22:34:01 +08:00
0acd9b6bea vendor: add proto for count min sketch (#5024) 2017-11-07 10:17:45 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
182476ea0f stats: fix bug when merge sample collectors (#4752) 2017-10-11 22:05:47 -05:00
3e1d036336 *: log the caller of "terror.Log()" (#4729) 2017-10-10 11:26:43 +08:00
c2691114b4 *: check errors part 2 (#4704) 2017-10-09 12:46:45 +08:00
31f7b9c3b6 *: implement analyze columns push down (#4522) 2017-09-18 14:21:10 +08:00
200fe45550 stats: prework for analyze push down (#4478) 2017-09-11 14:06:21 +08:00
0e438de9ff *: move sample collector from executor to stats (#4468) 2017-09-08 12:21:10 +08:00