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
c12a53fd9e
plan: fix a panic bug when involved join and order by. ( #1963 )
2016-11-08 16:11:10 +08:00
1c6c145f94
*: Set custom verbose flag to true ( #1956 )
...
* *: set custom verbose flag to true
* *: update .gitignore
2016-11-05 18:00:13 +08:00
85c0954dc2
support builtin function from_unixtime ( #1929 )
2016-11-04 13:15:55 +08:00
bfc1ca679a
tidb: load and apply common global variables for the session ( #1942 )
...
Fixes a bug some global variables like 'sql_mode' not applied to session.
2016-11-03 22:01:15 +08:00
035666f231
plan: add cast function for PatternInExpr. ( #1932 )
2016-11-03 15:40:58 +08:00
693eada753
plan: fix cost calculate bug. ( #1933 )
...
* plan: fix cost calculate bug.
2016-11-03 12:34:34 +08:00
3bcb4bedd8
executor: let union_scan executor use its own schema. ( #1925 )
2016-11-02 13:26:11 +08:00
bf9de5ccee
executor: avoid create new domain in test. ( #1910 )
...
A store should has only one domain, and it is already created when create a session.
we should not manually create domain.
2016-10-31 19:56:29 +08:00
3fc9ae6bf5
remove useless check
2016-10-28 19:02:23 +08:00
1481e85129
*: add a flag to restrict cartesian product.
2016-10-28 18:38:27 +08:00