0d6490efc4
*: interpret timestamp datum based on session's time_zone ( #3167 )
...
1. FromPackedUint don't consider time_zone any more, moved to Unflatten
2. use session's time_zone instead of time.Local
3. add a time.Location parameter to some Encode/Decode functions in tablecodec
2017-05-08 11:58:55 +08:00
d128a10fad
plan, executor: implement index look up executor. ( #3204 )
...
index look up executor implements index double reading. we reuse the concurrency algorithm in old index executor.
2017-05-04 21:33:36 +08:00
dbcab85ba6
*: support index reader executor. ( #3175 )
2017-05-03 10:58:55 +08:00
858d76bbe3
executor: fixed comments warning. ( #3187 )
2017-05-01 19:19:32 +08:00
28be450cc9
plan, executor: refine code. ( #3173 )
2017-04-28 16:43:26 +08:00
c646b59927
*: fix data race in join. ( #3159 )
2017-04-27 23:26:15 +08:00
350c79382a
*: support new table reader executor. ( #3133 )
2017-04-27 13:27:26 +08:00
c237781cad
plan, executor: make Analyze a Plan ( #3130 )
...
* executor: remove indexExec's depedency on indexPlan
* plan, executor: make Analyze a Plan
* address comment
* address comment
* fix gofmt
2017-04-26 10:36:44 +08:00
7699d3fb76
*: refine EvalBool function. ( #3139 )
2017-04-25 22:07:17 +08:00
790cbd615a
executor: initialize index scan concurrency. ( #3097 )
...
Index scan concurrency is not initialized, so the effective concurrency was 1.
For table lookup task, the concurrency should use table scan concurrency instead.
2017-04-20 21:03:04 +08:00
0f2afbf44b
statistics: prepare for analyze part of a table ( #3062 )
...
We need to make somthing like 'analyze index...' work, this is only the first step.
2017-04-20 14:05:51 +08:00
97bfafa702
*: Use AggregationFunction instead of evaluate in aggregation ( #3040 )
2017-04-14 19:49:00 +08:00
e3a0dc68ce
*: use column id to get stats instead of column offset ( #3019 )
...
Now we assume that the order of columns in stats matches the column offsets. It will return wrong stats sometimes.
If we analyze when a table is (c1, c2) and then drop c1, the c2's offset will become 0. But in stats the position of 0 is c1. I have added this case to test.
2017-04-10 16:03:20 +08:00
fac3eb283b
plan, executor: add logical prefix for agg, join and apply. ( #2985 )
2017-04-05 19:38:35 +08:00
aaa6184670
*: implement index nested loop join ( #2945 )
2017-04-01 15:12:20 +08:00
78f7eab61d
*: refactor distsql and executor. ( #2942 )
2017-03-29 15:20:25 +08:00
0e172acd8e
Add a controller in Selection to control the conditions of the below scan plan. ( #2834 )
...
Prepare for IndexLookupJoin.
2017-03-28 09:58:49 +08:00
ed56d82fa7
sessionctx/variable: refine TiDB specific system variables. ( #2915 )
2017-03-24 12:57:33 +08:00
7739d97697
Sort Merge Join ( #2850 )
...
parser/plan/executor: Added Merge Join operator with Hints
2017-03-22 21:42:16 +08:00
51fce6fd51
plan: fix bug about column prunning. ( #2796 )
2017-03-09 15:40:16 +08:00
16fa15d890
*: support revoke statement ( #2661 )
2017-02-21 22:05:50 +08:00
4dcd7c8d41
*: fix bug about scalar subquery. ( #2674 )
2017-02-18 15:42:26 +08:00
37977865df
*: add max1row info and refine scalar subquery's decorrelation. ( #2646 )
2017-02-17 19:25:00 +08:00
dcc7715ec2
*: support with grant option for grant statement ( #2647 )
2017-02-16 12:58:07 +08:00
4d9b70f0a6
plan, executor: give special treat for index columns when analyze table ( #2436 )
...
* plan/statistics: statistics support add index info
2017-01-26 11:24:53 +08:00
461fd98bb0
*: rename the plan interface. ( #2547 )
2017-01-25 15:10:44 +08:00
96ee4446e3
*: refactor function. ( #2499 )
2017-01-22 18:10:38 +08:00
f145a32063
*: refactor apply plan and executor. ( #2411 )
2017-01-22 11:06:17 +08:00
6ae4b77d7f
plan, executor: clean code ( #2520 )
2017-01-22 10:18:10 +08:00
a28ab3eb73
*: add GetArgs interface ( #2343 )
2016-12-29 19:10:01 +08:00
5f96f67cbc
*: change schema from []*Column to struct ( #2321 )
2016-12-27 14:02:19 +08:00
751a81b77e
*: add physical mem table plan ( #2296 )
2016-12-25 16:13:18 +08:00
64484a4257
*: refactor context.Context ( #2298 )
...
Make transaction life cycle under control, prepare for correctly handle schema out of date error.
The old `GetTxn(forceNew boll)` is replaced by `Txn` and `NewTxn`,
`CommitTxn` and `RollbackTxn` is removed.
2016-12-23 13:02:41 +08:00
0adabe53a1
*: begin a transaction in PrepareTxnCtx, unify in transaction. ( #2290 )
...
Transaction should has the same life cycle as TxnCtx, so create a
new transaction in PrepareTxnCtx if transaction is nil or invalid.
2016-12-21 16:48:19 +08:00
a89fa8a8d3
*: refact insert logic ( #2252 )
2016-12-20 17:38:23 +08:00
c24c90b4d3
tidb, variable: refactor retry, add TransactionContext ( #2256 )
2016-12-16 11:07:59 +08:00
d406c77c1f
Revert "tidb, variable: refactor retry, add TransactionContext" ( #2255 )
2016-12-15 10:42:04 +08:00
ff0ceb1785
tidb, variable: refactor retry, add TransactionContext ( #2254 )
2016-12-15 10:35:57 +08:00
35edefb757
*: rewrite the logic of set. ( #2223 )
2016-12-12 17:54:16 +08:00
379363266e
plan: optimize the filter condition push down logic when do index double read ( #2166 )
...
Origin design will put index conditions into table scan, but it can
be pushed down into index scan.
2016-12-07 17:02:16 +08:00
74a1c9935d
*: add StatementContext argument to functions. ( #2157 )
...
Add StatementContext argument to more functions where it is needed.
2016-12-02 23:28:11 +08:00
e321a72998
executor: fix the error when union_scan's src is mem table. ( #2138 )
2016-11-30 21:27:00 +08:00
5230f5eabd
variable: define StatementContext. ( #2121 )
...
StatementContext is used to hold statement execution mode and state.
As every computation need this, there are many API changes.
2016-11-29 14:25:38 +08:00
73f2ffad90
varsutil: remove dependency on 'types' for 'variable' package ( #2095 )
...
* varsutil: remove dependency on 'types' for 'variable' package
'variable' package will be used in 'types', remove dependency on 'types' by
moving functions to a new 'varsutil' package.
Also extract 'SetExec' from 'SimpleExec'
2016-11-25 13:44:49 +08:00
440abb21f2
plan: set apply's innerplan be the second child of it. ( #2092 )
2016-11-25 11:07:41 +08:00
79a8c3fc8d
plan: add a Cache plan in physical plan ( #2052 )
...
plan: add Cache plan
* format code
* tiny change
* optimize the logic of code
* rename some variable and optimize logic
* move e.cursor++ down
2016-11-23 15:53:44 +08:00
0af8520a78
sessionctx/variable: remove dependency on context package. ( #2064 )
...
Makes using session variable easier and faster.
Prepare for use session variable to handle data truncated error.
2016-11-23 14:39:48 +08:00
af5b0e71fc
infoschema: implement infoschema table. ( #2034 )
...
Creates a information schema specific table that implements table.Table interface.
The rows in this table is generated by `[]*model.DBInfo` on request.
Further reduce memory allocation.
2016-11-21 19:47:41 +08:00
421ceeb8fa
*: make golint happy.
2016-11-15 11:12:24 +08:00
cbf024e8f7
*: clean code. ( #1987 )
2016-11-10 15:38:22 +08:00