Commit Graph

174 Commits

Author SHA1 Message Date
3847ec8466 planner: fix a corner case in column pruning rule (#10974) 2019-07-01 12:52:55 +08:00
0d984d8ffc executor: locks key in point get executor for pessimistic transaction (#10972) 2019-06-28 14:06:43 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
c59028a2b5 *: let baseFuncDesc.typeInfer return error instead of panic (#10910) 2019-06-24 13:09:14 +08:00
04cd877967 session, sessionctx: add unit test for sessionctx, session (#10763) 2019-06-18 15:09:13 +08:00
fbf58fc9b5 planner: fix wrong selectivity for inner selection in index join (#10633) 2019-06-12 12:50:14 +08:00
3760c63dab planner: propagate more possible props to enlarge search space (#10548) 2019-06-10 17:48:53 +08:00
b83e333871 planner, cmd: correct the behavior of IndexJoin hint for SemiJoin (#10583) 2019-05-23 23:25:18 -07:00
54899f66f6 parser: support LOAD DATA ... IGNORE/REPLACE (#10336) 2019-05-22 17:03:29 +08:00
2d70e4da27 cmd/ddltest: fix build using 'go test -c' (#10535) 2019-05-20 12:54:37 +08:00
f100cddbf7 cmd: move ddltest from tidb-test (#9052) 2019-05-16 10:23:39 +08:00
480c605ae0 cmd/importer: support probability in building incremental column (#10454) 2019-05-15 13:32:14 +08:00
7690a7fe88 cmd/importer: support incremental columns (#10434) 2019-05-14 11:14:45 +08:00
9b74130e49 cmd: add more explaintests for generated columns (#10373) 2019-05-08 17:23:15 +08:00
0106361cd9 expression: let PushDownNot does not change the argument (#10363) 2019-05-06 16:22:19 +08:00
efe9b6ab2a planner/core: fix privilege check for update (#10281) 2019-04-30 13:06:54 +08:00
9d74d6404f planner, executor: index join enhancement (#8471) 2019-04-29 11:07:15 +08:00
f9c82b531c plan: improve row count estimation using column order correlation (#9839) 2019-04-24 16:19:21 +08:00
8ec262c9b7 cmd/pluginpkg: support relative path (#10205) 2019-04-22 12:24:30 +08:00
11d7199fcf fix pluginpkg.go typo (#10202) 2019-04-20 10:36:26 +08:00
e5f734e54c *: move the Handle of stats to single package. (#10149) 2019-04-17 13:42:34 +08:00
7666f688b3 *: add stats version in slow_query and slow log. (#10082) 2019-04-15 18:04:48 +08:00
175bae45e1 planer: tiny refine code to return as early as possible In convertToIndexScan and convertToTableScan. (#10058) 2019-04-12 13:49:13 +08:00
8800ec195a plan: push down constant filters over join properly (#9848) 2019-04-04 15:50:32 +08:00
51cb84f202 planner: correct estimated row count for inner plan of index join (#10015) 2019-04-04 14:40:14 +08:00
6e3353b76f tidy goimports (#10021) 2019-04-03 17:10:00 +08:00
4c91f53e1f planner: do not eliminate group_concat in aggregate elimination (#9967) 2019-04-01 12:21:19 +08:00
5ffa06b6c3 *: unify and normalize the format of the log in the pkg of server (#9878) 2019-03-25 16:10:36 +08:00
0313cbbbde plugin: add audit plugin extension point (#9136) 2019-03-25 15:18:34 +08:00
b78490e403 *: use the unified log format for the remaining packages (#9743) 2019-03-22 16:34:47 +08:00
e829920934 planner: fix plus prefix for select constant (#9707) 2019-03-21 10:51:59 +08:00
0b28f30cfd planner: improve row count estimation for index range containing correlated columns (#9738) 2019-03-19 15:38:59 +08:00
4454461609 planner: fix point get with PK and UK (#9737) 2019-03-15 12:54:29 +08:00
7f27f7daba planner, executor: set new child after injecting Project operator (#9684) 2019-03-13 14:19:32 +08:00
0bec639074 planner: correct ExpectedCnt for children plans of join (#9497) 2019-03-11 15:08:02 +08:00
85c4553c4e planner: chose outer table based on cost when both tables are specified in TIDB_INLJ (#9579) 2019-03-08 13:25:44 +08:00
2b646cb58b planner, executor: handle default frame for window functions (#9544) 2019-03-06 19:37:30 +08:00
0267a7fbdf ddl: validate fsp for datetime/timestamp if they are used as defaultvalue of datetime/timestamp columns (#9327) 2019-03-04 11:19:11 +08:00
5a283a98dd plan/executor: make semi joins null and empty aware (#9051) 2019-02-25 15:42:38 +08:00
f105b710ca planner: remove correlated column sort items (#9435) 2019-02-25 14:48:44 +08:00
38a453d29c expression: should not pass nil pointer to HashCode() function (#9324) 2019-02-21 21:18:03 +08:00
231ce8f75a planner: change the cost formula for join reorder (#9303) 2019-02-19 18:46:06 +08:00
bc0e70dc5c planner/core: implement skyline pruning (#9337) 2019-02-19 11:19:30 +08:00
7c0a9a7c57 add integration tests for access path selection (#9212) 2019-02-18 19:08:24 +08:00
c468f02bb0 planner: remove constant sort items after substitution (#9333) 2019-02-18 10:57:35 +08:00
6136ab14cf *: start replacing logger with zap logger (#9279) 2019-02-15 16:43:47 +08:00
18ff4f953e planner/core: refine explain for window function (#9270) 2019-02-13 15:23:00 +08:00
9bdba3a5d1 plan: handle DNF expressions in Selectivity (#9282) 2019-02-13 10:53:12 +08:00
e1667966ac planner: fix assertion failure on LogicalJoin.EqualConditions (#9066) 2019-02-11 11:45:15 +08:00
09a5c8028e plan: derive col is not null from col op col conditions (#8603)
Check whether the `op` condition is null rejected, if yes, derive
`col is not null` for both sides of inner join, and for inner side
of outer join.

Also, remove duplicate conditions before pushing them down. Check
if the condition is mutable before removing duplicates.

For AntiSemiJoin, AntiLeftOuterSemiJoin and LeftOuterSemiJoin, do
not generate new `is not null` conditions.
2019-01-30 10:53:46 +08:00