Commit Graph

73 Commits

Author SHA1 Message Date
f890b85915 plan: always clone Expression when set it to plan. (#6263) 2018-04-13 14:30:08 +08:00
e2b033d1c0 *: add a tidb system variable tidb_hash_join_concurrency (#6244) 2018-04-12 20:28:19 +08:00
582e33a0e4 *: use tidb_index_lookup_join_currency to control the number of IndexLookupJoin inner workers (#6240) 2018-04-10 10:05:00 +08:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
f287451eed tidb: move tidb/*.go to session directory (#6062)
This change makes our top level directory clean.
2018-03-20 09:06:11 -05:00
67c948b609 executor: refactor merge join (#6078) 2018-03-20 12:37:40 +08:00
bc1611a8ac executor: Change makeJoinRowToChunk to account for virtual rows (#6049) 2018-03-16 13:27:47 +08:00
631141b22c *: remove Next function for RecordSet (#6040) 2018-03-13 21:05:10 +08:00
b4ed212966 plan: fix a bug when do column substitution for join. (#6041) 2018-03-13 16:13:49 +08:00
a3bf058304 *: 1. remove EnableChunk 2. implement Next in baseExecutor to return nil (#5988) 2018-03-09 17:40:11 +08:00
45f333b33f executor:improve test coverage (#5836) 2018-02-26 16:41:54 +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
bafe5697d6 executor: pass goCtx when initialize UnionExec (#5870) 2018-02-11 22:16:34 +08:00
d95f96505a *: refine join result generator to return MaxChunkSize chunk (#5715) 2018-01-31 20:00:59 +08:00
20f85865f0 executor: close hashjoin goroutines as soon as possible to avoid unexpected error (#5620) 2018-01-11 16:22:44 +08:00
6608dbdc2f executor: fix a bug of NewIndexLookUpJoin's Next(). (#5455) 2017-12-20 20:57:12 +08:00
581002b8f7 plan, executor: only set DefaultValues in agg push down. (#5383) 2017-12-12 21:31:58 +08:00
2edc8dcfab executor: fix a bug when apply meets index join (#5381) 2017-12-12 20:25:27 +08:00
c9245f52c2 plan: add hint to force to choose hash join. (#5315) 2017-12-08 20:02:45 +08:00
c6e8f36835 *: avoid double Close() executor during test (#5285) 2017-12-01 18:13:50 +08:00
d675ce16ca plan: fix a bug about index join. (#5275) 2017-12-01 17:08:45 +08:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
726c3a0fa9 executor: tiny refine for join (#5099) 2017-11-20 23:05:57 +08:00
a67c4b1ee1 plan, executor: refine projection elimination when projection is the inner child of an outer join (#5086) 2017-11-15 04:28:07 -06:00
cd5c665c8c executor: use baseExecutor for all Executors (#5087)
Makes it easy to add new method on Executor interface.
2017-11-13 21:06:31 +08:00
7cdcc1d990 plan: return error instead of panic when subquery in join ON condition (#5062) 2017-11-10 18:27:03 +08:00
68cd5b09c4 plan, executor: improve hash join to support all join types (#4987) 2017-11-09 10:22:35 +08:00
0977fd07e6 *: begin opentracing from dispatch() and change interface to Execute(ctx, sql) (#5027) 2017-11-07 02:52:15 -06:00
b7c722aab6 Support SQLMode ONLY_FULL_GROUP_BY and fix a join panic bug (#4613) 2017-11-06 10:53:29 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
a34964a36a *: improve the column info for client (#4770)
Add table/database info in the response message.
2017-10-15 08:27:13 -05:00
9c2ea17722 *: enforce errcheck in Makefile (#4724)
checks all errors and enable errcheck in Makefile

Fixes https://github.com/pingcap/tidb/issues/4668
2017-10-09 17:16:10 +08:00
67fa005048 executor, plan: abandon the selection controller (#4528) 2017-09-21 11:40:04 +08:00
6f9457e373 executor: use tearDownTest instead of defer (#4499) 2017-09-12 01:02:41 -05:00
87baaaf73e plan: fix bugs when do natural join or join with using. (#4382)
* plan: fix bug when do natural join or join with using.
2017-08-31 10:06:32 +08:00
6c44eb6eee *: fix bug of union type cast (#4322) 2017-08-26 15:24:52 +08:00
3e0bfbe91a plan: rewrite index join plan generation. (#4274) 2017-08-22 12:29:02 +08:00
ae512b3e3e plan: reopen join reorder for new planner. (#4242) 2017-08-20 17:26:42 +08:00
c7c248eb91 executor: change struct row to []types.Datum (#4072) 2017-08-09 18:37:57 +08:00
3e1efa634f plan: push property across semijoin. (#4083) 2017-08-08 18:24:26 +08:00
0e8bffa44e executor: fix bug when do outer index join (#3998) 2017-08-03 12:08:02 +08:00
bedd8790a9 executor: fix bug in index lookup join (#3992) 2017-08-02 22:24:57 +08:00
7874e989eb *: support natural join. (#3861) 2017-08-01 13:56:29 +08:00
f283948ae9 plan: fix the order of schema columns (#3946) 2017-07-31 15:49:14 +08:00
bb1878d271 executor: fix bug when sort meets apply. (#3932) 2017-07-28 14:33:11 +08:00
0dbb0877e0 plan, executor: support ordered index join. (#3921) 2017-07-28 13:45:27 +08:00
a9b1a83f31 executor: fix a bug in index join. (#3860) 2017-07-23 15:42:19 +08:00
fc9d5eb215 executor, codec: fix bug when join 2 decimal keys. (#3797) 2017-07-19 11:42:17 +08:00
466e48c3de executor, util: fix bug when the join's keys have different types. (#3784) 2017-07-18 16:28:08 +08:00
2578ae15cd plan, executor_test: fix bug for user variable. (#3776) 2017-07-17 16:35:31 +08:00