Commit Graph

19 Commits

Author SHA1 Message Date
4491bf854e planner: rename optimizer hints (#11673) 2019-08-14 19:31:01 +08:00
fe038642e5 *: refactor cost model formulas and constants (#10581) 2019-08-07 17:44:09 +08:00
bdec3414e7 executor: fix the behavior when index join meet prefix index (#11081) 2019-07-12 17:48:35 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
fbf58fc9b5 planner: fix wrong selectivity for inner selection in index join (#10633) 2019-06-12 12:50:14 +08:00
b05977d47e executor: ignore overflow error when construct inner key (#10244) 2019-04-29 13:22:30 +08:00
9d74d6404f planner, executor: index join enhancement (#8471) 2019-04-29 11:07:15 +08:00
7666f688b3 *: add stats version in slow_query and slow log. (#10082) 2019-04-15 18:04:48 +08:00
51cb84f202 planner: correct estimated row count for inner plan of index join (#10015) 2019-04-04 14:40:14 +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
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
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
084aa5a030 config: add initChunkSize config item, make chunk start with 32 (#8480) 2019-01-07 11:14:47 +08:00
98b96cc769 executor: speedup unit tests by spliting them into separate suites (#8618) 2018-12-24 21:37:12 +08:00
679d2e559c planner/core: make TIDB_INLJ to specify the inner table (#8243) 2018-11-13 11:55:30 +08:00
d606b0d55f executor: fix wrong result when index join on union scan. (#8031)
Do not modify Plan of dataReaderBuilder directly, because it would
impact next batch of outer rows, as well as other concurrent inner
workers. Instead, build a local child builder to store the child plan.
2018-10-25 11:38:35 +08:00
5efcacbff8 plan,executor: support IndexJoin over UnionScan (#7877) 2018-10-12 19:18:42 +08:00
d4d1851a39 executor: fix index lookup join hang (#6267) 2018-04-11 18:41:26 +08:00