Commit Graph

19 Commits

Author SHA1 Message Date
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
ae7346fc64 statistics: introduce the weighted reservoir sampling (#24089) 2021-04-22 16:43:54 +08:00
bd12ea96cc statistics: use index fm-sketches instead of bucket NDV to calculate global NDV for indexes (#23962) 2021-04-15 14:59:55 +08:00
b1b7730402 statistics: add more tests to check accurateness of global-stats (#22948) 2021-03-01 12:49:56 +08:00
62354d04b7 statistics: merge partition-level FMSketch to global-level FMSketch and update the column NDV (#22878) 2021-02-23 19:06:23 +08:00
f3fe4895cb statistics: support to store FMSketch and add FMSketch to column stats (#22841)
* add FMSketch to mysql.stats_histograms

* statistics: support store FMSketch and add FMSketch to histogram

* FIX UT

* Create Stats_FM_Sketch Table

* fix UT

* add some tests

* FIX ut

* move fmSketch from histogram to column.stats

* remove unused code and comments

* fix ut

* fix ut

* fix ut

* fix ut

* fix ut

* fix ut

* finish the FMSketch.MemoryUsage function

* add some comments for FMSketch.MemoryUsage function

* fix typo

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-02-23 10:39:09 +08:00
06e73a56cc *: compatible with Go 1.14's checkptr (#18189) 2020-06-24 13:04:47 +08:00
a7bdb82402 *: Reduce memory operations by simply passing size hint to make (#14922) 2020-02-25 15:44:36 +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
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
0553deeb42 *:improve code readability and unified aliases (#5997) 2018-03-15 10:52:36 +08:00
ecbd60c3ff *: add arguement StatementContext to Encode functions. (#5566) 2018-01-06 17:31:08 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
a7bcc2b335 stats: change FMSketch hash function from fnv to murmur (#4541) 2017-09-15 20:02:39 +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
16cefef717 executor, statistics: use FM sketch to estimate NDV (#2966) 2017-04-01 15:03:54 +08:00
6d7dc9228a statistics: implement FM Sketch (#2947) 2017-03-30 11:27:16 +08:00