0de1339979
store/tikv: export mocktikv as a storage engine. ( #3107 )
...
So DAG mocktikv can run integration tests.
2017-04-21 14:11:38 +08:00
59154905aa
*: rename table-driven tests name. ( #3081 )
2017-04-19 10:02:57 +08:00
d8c52e8ac9
*: Remove useless code and use the DAG mode in tests ( #3069 )
2017-04-17 22:14:16 +08:00
70df9c0464
*: support topN with DAG ( #3008 )
2017-04-07 18:05:55 +08:00
5eb8a819b7
*: Support limit with DAG ( #3004 )
2017-04-07 17:13:45 +08:00
b799b182e8
store: Support table scan, index scan and selection with DAG. ( #2930 )
2017-03-28 22:36:21 +08:00
99b7606624
executor: Make admin test stable ( #2940 )
2017-03-28 14:50:30 +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
51fce6fd51
plan: fix bug about column prunning. ( #2796 )
2017-03-09 15:40:16 +08:00
624e7edebe
executor: fix bug about topn pushing down. ( #2693 )
2017-02-21 14:54:56 +08:00
6859d121b9
txn:improvement for point get by unique key or pk ( #2631 )
2017-02-20 22:39:36 +08:00
43c73b7caa
util/types: fix bug when truncating string values. ( #2686 )
2017-02-20 20:35:47 +08:00
846b267b46
util/types: ignore string truncate error. ( #2685 )
2017-02-20 19:51:08 +08:00
1972558dc9
*: change default collation to utf8_bin ( #2617 )
...
Currently we doesn't support case insensitive index, our duplication check is always case sensitive.
We should not use case insensitive collation as default collation.
2017-02-10 11:45:35 +08:00
59e8ccf0a5
expression: workaround for wrong timediff function input ( #2611 )
2017-02-08 20:57:27 +08:00
8bafc3d515
tidb: accelerate unit test ( #2590 )
...
Avoid BootstrapSession everytime, just do it once in testSessionSuite.SetUpSuite
2017-02-06 15:11:38 +08:00
7965666bce
executor: ajust some code. ( #2574 )
2017-01-30 09:45:50 +08:00
32173e988f
plan: fix a bug of exists sub query ( #2549 )
2017-01-25 14:41:53 +08:00
873403ab70
plan: refine the range calculating. ( #2534 )
2017-01-24 12:49:12 +08:00
150574bacf
plan: remove aggregation grouped by unique key. ( #2424 )
2017-01-23 19:08:48 +08:00
9d536e34a7
*: run a bootstrap session before store is ready (fix race) ( #2491 )
2017-01-22 11:39:25 +08:00
f145a32063
*: refactor apply plan and executor. ( #2411 )
2017-01-22 11:06:17 +08:00
12ae004603
executor: fix join leak ( #2505 )
...
In HashJoin Executor When Close is called after fetched 1000 rows, the result channel is full,
Close is blocked forever.
2017-01-18 23:31:41 +08:00
999517c4f1
Revert "*: run a bootstrap session before store is ready" ( #2490 )
2017-01-17 15:14:24 +08:00
e1ecc1059e
*: run a bootstrap session before store is ready ( #2481 )
2017-01-17 14:46:35 +08:00
ba8b6a9c26
fix bug of union type converting ( #2471 )
2017-01-16 12:09:27 +08:00
1b72b11ffa
util/types: fix truncate float ( #2405 )
2017-01-06 17:14:04 +08:00
696bea9f37
*: Support batch load data ( #2394 )
2017-01-05 16:15:00 +08:00
36e9570051
*: concurrently begin a transaction and compile ( #2393 )
2017-01-05 15:00:43 +08:00
e38c67e086
executor: implements nested loop join. ( #2365 )
2017-01-03 19:53:03 +08:00
31d58b69ed
executor: consider uint = int in join condition. ( #2355 )
2016-12-30 19:00:49 +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
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
dd4dcfee36
fix primary key's type ( #2222 )
...
* executor: fix primay key type error
When we do single read index scan, primay key's type should be determined
by it's flag.
* executor: add test
* executor: format code:
* executor: address comment
2016-12-12 01:35:22 -06:00
292e58c2aa
*: make union execution parallel and fix a union plan bug. ( #2195 )
2016-12-08 22:45:49 +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
5738e7fc18
plan: support pushing agg past union all. ( #2150 )
2016-12-02 18:16:51 +08:00
3a721da8fc
*: fix cast decimal allocates large memory. ( #2146 )
...
If precision is too large, encode decimal allocates large amount of memory.
This commit set cast decimal unspecified length to default decimal length (10),
also add check on precision and frac on `MyDecimal.ToBin`.
2016-12-01 17:37:10 +08:00
ad30a5b18f
plan: fix the value of attribute correlated of HashAgg ( #2140 )
2016-12-01 11:31:36 +08:00
9311ce64fd
executor: fix a bug when join exists in subquery. ( #2106 )
...
* executor: fix a bug when join exists in subquery.
2016-11-30 10:40:22 +08:00
3c349259e4
*: basic support for builtin function STR_TO_DATE ( #2078 )
2016-11-28 14:17:32 +08:00
d179a84610
plan: correct enforcer's correlated attribute. ( #2079 )
2016-11-23 20:04:23 +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
39a2c09542
executor_test: clean enviroment for each test. ( #2025 )
2016-11-18 16:45:13 +08:00
5d3bb33afd
util/types: fix decimal conversion. ( #1979 )
...
When datum converts to decimal, we should check the Flen and Decimal of
the given field type, return max value for overflow and round the value
for truncation.
2016-11-09 16:53:30 +08:00
9946941089
plan: add the missing filer conditions ( #1977 )
2016-11-09 10:12:37 +08:00