Commit Graph

276 Commits

Author SHA1 Message Date
95a6e1e720 ranger: split detach process from BuildRange. (#4741) 2017-10-12 11:22:18 -05:00
bd8942829a stats: fix bug when convert time to scalar (#4760) 2017-10-12 05:19:33 -05:00
a5266d6621 stats: fix bug when build histograms for columns (#4757) 2017-10-12 13:28:12 +08:00
182476ea0f stats: fix bug when merge sample collectors (#4752) 2017-10-11 22:05:47 -05:00
7d2804e43c *: check sc.IgnoreZeroInDate when parsing string or number to date/datetime/timestamp (#4732) 2017-10-10 23:38:53 -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
ca048c0582 statistics: Correct comments mistakes. (#4711)
* statistics: Correct comments mistakes.
2017-10-05 20:40:01 +06:00
665f62929d *: make "unconvert" happy (#4700) 2017-09-30 15:53:01 +08:00
f6ccdb75e3 stats: pre-calculate the lower and upper scalar (#4623) 2017-09-26 03:15:00 -05:00
6f84392d40 *: optimize SortExec (#4622)
* *: change key of orderByRow from "key []types.Datum" to "key []*types.Datum"

* address comment
2017-09-25 19:50:26 +08:00
7eefb404fd stats: refine estimate in buckets (#4601) 2017-09-22 03:35:51 -05:00
fe31f4b597 plan,statistics: don't forget to close domain in testing (#4591) 2017-09-20 21:42:25 +08:00
c92b124aa9 *: make test leak great again (#4543) 2017-09-20 17:07:32 +08:00
31f7b9c3b6 *: implement analyze columns push down (#4522) 2017-09-18 14:21:10 +08: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
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00
0e438de9ff *: move sample collector from executor to stats (#4468) 2017-09-08 12:21:10 +08:00
e3cbcad807 should use time.Since instead of time.Now().Sub (#4445) 2017-09-06 12:15:24 +08:00
19a13dec6f stats: update handle version before update stats (#4361) 2017-08-31 11:42:05 +08:00
a8f18440fd statistics_test: avoid unnecessary create new store (#4241) 2017-08-21 13:12:30 +08:00
97afa26e1f stats: fix a panic bug. (#4257) 2017-08-21 13:01:19 +08:00
7c273c0f29 *: implement auto analyze (#4141) 2017-08-18 18:42:28 +08:00
611695bf7a statistics: fix bug when update stats delta (#4098) 2017-08-09 15:58:38 +08:00
3d8d1d6f45 *: refine tests. (#4016) 2017-08-04 00:15:20 +08:00
520785b149 *: fix possible race in stats update (#3987) 2017-08-03 20:54:15 +08:00
2c4a46e2f0 statistics: return 1 when statistics is not ready and row count of table is 0 (#3952) 2017-07-31 14:28:04 +08:00
dff73cc6e4 *: Modify the Makefile for go vet (#3900) 2017-07-30 23:02:52 -05:00
c6b4aa8fe5 plan, statistics: plan topn more precisely. (#3902) 2017-07-27 10:53:22 +08:00
62fcf2c798 statistics: make the naming more coherent (#3827) 2017-07-20 18:06:00 +08:00
e0e77d3bac *: reduce analyze table read when table contains PK (#3783)
* *: reduce analyze table read when table contains PK

* fix ci

* *: address comment

* fix ci

* statistics:make comment more accurate
2017-07-18 05:07:17 -05:00
ec796ba999 plan, statistics: begin to use statsProfile to estimate count and cardinality. (#3728) 2017-07-13 16:57:27 +08:00
f9c62ee67e statistics: add test (#3727) 2017-07-13 11:38:32 +08:00
bebd5c59e4 statistics: fix bug when calculate lowerbound (#3677) 2017-07-10 15:40:46 +08:00
aa41e3aaf4 *: support show stats (#3633) 2017-07-06 16:51:59 +08:00
467a01a2d0 *: support drop stats (#3615)
* plan, executor: support drop stats

* ast: add comment

* address comment

* address comment
2017-07-05 17:01:36 +08:00
8072082323 statistics: introduce selectivity calculation (#3161) 2017-07-04 13:00:19 +08:00
0f50d286bd statistics: add table.GetRowCountByColumnRanges method. (#3530) 2017-07-03 10:52:41 +08:00
73cfeac540 statistics: add variable member for table. (#3586) 2017-07-03 10:43:23 +08:00
d0358ceb1c executor, statistics: remove useless code and rename file name. (#3564) 2017-06-29 14:52:19 +08:00
11247bf083 statistics: no longer pass inAndEqCnt to calc pseudo index row count (#3515) 2017-06-20 22:19:46 +08:00
b73c562ab4 statistics: fix a divided by zero bug (#3481)
* statistics: fix a divided by zero bug

* add test
2017-06-15 13:53:27 +08:00
1ccc71a94a statistics, ranger: add method to calculate the range and row count of non pk column (#3234) 2017-06-13 12:01:05 +08:00
1ac2be8cc5 statisitcs: estimate range result with increase factor. (#3432) 2017-06-09 15:24:15 +08:00
7ae996c411 Set stats lease. (#3408) 2017-06-07 18:19:52 +08:00
8eed6456e9 statistics: store and load null count. (#3350) 2017-05-31 12:58:27 +08:00
a81726a42f executor, statistics: analyze with null count. (#3336) 2017-05-26 16:44:09 +08:00
607af0bb7f statistics: estimate by lower bound. (#3341) 2017-05-26 16:12:35 +08:00
7a5cd973f8 statisitics: build and load with lowerbound (#3327) 2017-05-25 15:00:36 +08:00