Commit Graph

970 Commits

Author SHA1 Message Date
eb8df3519a *: prepare to enforce errcheck, part1 (#4670) 2017-09-30 16:23:37 +08:00
883b9aea5d *: open analyze push down (#4698) 2017-09-30 13:48:36 +08:00
e6360b1efc *: support SyncLog kv request option (#4689) 2017-09-30 00:15:54 -05:00
407719e79b executor: change to structured slow log for friendly JSON output (#4657) 2017-09-29 18:19:23 +08:00
a6b5c666c5 *: support NotFillCache kv request option (#4658)
If TiDB send a request with NotFillCache option, the LRU cache of underlying
storage will not be touched. select statement with SQL_NO_CACHE will use it.
2017-09-29 02:06:38 -05:00
56ed7f129d expression: change like function's behavior. (#4683) 2017-09-29 10:27:23 +08:00
e3ab386874 *: revert 4669 "make prepare stmt retriable when schema is out-dated" (#4676)
* Revert "executor: analyze use NewSelectResult (#4667)"

This reverts commit d1d78b726ba6ba4c79d38ce95252fc41753db02e.

* Revert "table: Speed up the add index operation (#4632)"

This reverts commit d782ce103eea7680f289f6a35576dc9349bb0bb4.

* Revert "*: make prepare stmt retriable when schema is out-dated. (#4669)"

This reverts commit 3dfbf52e64cc0af6039758d169bf133b965f5584.
2017-09-28 16:19:53 +08:00
d1d78b726b executor: analyze use NewSelectResult (#4667) 2017-09-28 13:07:35 +08:00
3dfbf52e64 *: make prepare stmt retriable when schema is out-dated. (#4669) 2017-09-28 10:41:22 +08:00
a6756a4eee *: make insert with calculated value behave the same as MySQL. (#4603) 2017-09-27 19:59:31 +08:00
0fd5b5167e *: change the way transfer handle. (#4348) 2017-09-27 03:47:07 -05:00
5a47a06dbf *: move tests (#4651) 2017-09-27 14:38:45 +08:00
5200745d6a distsql,store/tikv: SelectDAG function parameter refactor (#4645)
* distsql,store/tikv: SelectDAG function parameter refactor

1. move some distsql.SelectDAG parameter to kv.Request struct
2. modify tikv.RPCContext struct, remove kvrpcpb.Context in it
3. let tikvrpc.Request struct share Context with its subcommand request
2017-09-27 12:33:05 +08:00
0094512187 *: update start ts for NewTxn. (#4628)
The start_ts is only updated in `ActivePendingTxn`, it need to be updated in `NexTxn` as well.
2017-09-25 20:07:24 +08:00
6f84392d40 *: optimize SortExec (#4622)
* *: change key of orderByRow from "key []types.Datum" to "key []*types.Datum"

* address comment
2017-09-25 19:50:26 +08:00
25b5a2ce18 *: Refactor aggregation (#4605)
Aggregation results were stored in aggregation functions, so one map is created for each function to store different groups’ results, which requires much memory.
The aggregation functions are refactored and are now stateless, and the maps are kept in executor (executor.HashAggExec and mocktikv.aggregateExec) so that only one map is needed to store all the functions’ results, which reduced the memory usage.
2017-09-22 19:41:01 +08:00
d4adb77e4a executor: set default value for analyze push down (#4610) 2017-09-22 06:28:06 -05:00
a60bbd9560 expression: refactor "helper.go" (#4593) 2017-09-22 18:54:04 +08:00
a764561dac *: Speed up the add index operation (#4579) 2017-09-22 18:24:03 +08:00
16c008bc70 *: move tests. (#4604) 2017-09-22 17:38:40 +08:00
069cc8b222 expression: open new expression framework by default (#4595) 2017-09-22 15:29:42 +08:00
83aeca4e36 *: fix length of all show stmt (#4589) 2017-09-22 14:29:32 +08:00
040ad180aa *: use goroutine pool to avoid runtime.morestack (#3753) 2017-09-22 11:43:39 +08:00
74ab097d59 expression: fix a panic in buildSubquery. (#4596) 2017-09-21 05:57:05 -05:00
67fa005048 executor, plan: abandon the selection controller (#4528) 2017-09-21 11:40:04 +08:00
c899e5bb16 expression: rewrite builtin function: MOD (#4407) 2017-09-21 09:48:51 +08:00
c9e17e8317 plan: wrap CAST on generation expressions. (#4501)
* plan: wrap CAST on generation expressions.
2017-09-20 19:49:34 +08:00
c92b124aa9 *: make test leak great again (#4543) 2017-09-20 17:07:32 +08:00
b22e639c4a session_test: move some tests. (#4574) 2017-09-19 20:33:51 +08:00
1ae31c9fad Support delete ignore with strict sql mode produces warnings in truncate error (#4564) 2017-09-19 16:20:13 +08:00
f1022c8874 store/tikv: tiny update mocktikv (#4555)
* store/tikv: tiny update mocktikv

1. for mocktikv, close storage should close the leveldb engine
2. set tikvStore's mock flag in NewMockTikvStore function
2017-09-19 15:46:53 +08:00
c4a2824ca9 Support update ignore for truncate as warning (#4431) 2017-09-19 11:02:17 +08:00
aacfbf6fd3 *: move show tests. (#4542) 2017-09-18 23:56:54 +08:00
7adcc568e1 executor,mysql: fix #4540, Navicat for MySQL compability of show create table (#4544) 2017-09-18 20:26:57 +08:00
339c93e5f9 add real tables for global/session status in performance schema (#4523) 2017-09-18 17:10:34 +08:00
2762c44161 *: move aggregate functions to an individual package "aggregation" (#4549) 2017-09-18 15:07:35 +08:00
31f7b9c3b6 *: implement analyze columns push down (#4522) 2017-09-18 14:21:10 +08:00
e79e09143d executor: fix show create table with fk (#4537) 2017-09-15 17:42:04 +08:00
117ff28207 *: move InitLogger from SetUpSuite to TestT (#4532) 2017-09-15 15:16:22 +08:00
97242d362a config: add config file support. (#4509) 2017-09-14 19:38:49 +08:00
27f2594f31 expression: rewrite builtin function: ADDDATE, SUBDATE (#4504) 2017-09-14 19:16:37 +08:00
fc8b2ee47c fix #4514 (#4517) 2017-09-14 15:31:20 +08:00
d0be70d6a2 *: Support stream aggregation in new plan (#4481) 2017-09-14 14:22:29 +08:00
3636563eeb perf_schema: add required tables of mysqlx (#4521) 2017-09-14 13:58:27 +08:00
a7dc21c1e8 *: implement analyze index push down (#4489) 2017-09-14 10:34:12 +08:00
3f48f3a130 session_test, executor_test: move tests of schema change. (#4505) 2017-09-13 21:07:24 +08:00
188dd8c06f session_test: move out some tests. (#4490) 2017-09-12 20:22:43 +08:00
3428d80577 *: hide secure information in SHOW PROCESSLIST (#4451) 2017-09-12 01:40:21 -05:00
6f9457e373 executor: use tearDownTest instead of defer (#4499) 2017-09-12 01:02:41 -05:00
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00