Commit Graph

4497 Commits

Author SHA1 Message Date
4780bb478e store/tikv: use backoffer context for pd client calls (#2953) 2017-03-31 11:13:24 +08:00
b9deb5e7aa privilege: rename interface name from Checker to Manager (#2969) 2017-03-31 10:55:38 +08:00
a168f413ba executor: reduce memory usage and GC overhead for hash join. (#2957)
Implemented and use MVMap to reduce GC overhead and memory usage for hash join.
2017-03-30 23:04:02 +08:00
6860e0e6b7 tikv:do retry on request with tikv failure when is not Cancelled. (#2950) 2017-03-30 20:23:31 +08:00
3c494b7df1 *: add INFORMATION_SCHEMA.USER_PRIVILEGES table (#2963) 2017-03-30 17:10:14 +08:00
282ffd9c03 plan: optimize explain result (#2967) 2017-03-30 17:02:09 +08:00
992f367924 *: fix batch insert test data race (#2968)
Use atomic functions to access limit variable.
2017-03-30 16:36:04 +08:00
aa8298ef6e distsql: return zeroLenData if data length is nil. (#2965)
TiKV doesn't return RowsData when RowsData length is 0, so we sliced a nil data when
data length is zero.
This can only be reproduced on TiKV, so no unit test is added.
2017-03-30 15:54:27 +08:00
e068663cdc Auto split insert data into multiple batches. (#2958)
Add a sysvar to enable batch insert data and disable batch insert in transaction.
2017-03-30 14:57:55 +08:00
d87afa1014 types: Add missing TypeNewDate in ConvertTo (#2962) 2017-03-30 14:39:11 +08:00
904101210b executor: fix decode row panic (#2961)
Index Schema may be replaced by aggregation schema, which may be longer than
original schema length, in this case decode row will panic.
2017-03-30 13:15:04 +08:00
6d7dc9228a statistics: implement FM Sketch (#2947) 2017-03-30 11:27:16 +08:00
b48e5fe72b plan:fix case-when and coalesce type inferer (#2918) 2017-03-29 23:22:57 +08:00
8f79c2031b parser: change intLit to decLit when the value out of range (#2954) 2017-03-29 23:16:48 +08:00
e7bb049b0e statistics: adjust codes. (#2952) 2017-03-29 18:09:47 +08:00
ad13ca15ca session: reset affected rows in retry. (#2949) 2017-03-29 16:09:47 +08:00
a2eb611ea5 *: add built-in function is_ipv4 (#2864) 2017-03-29 15:31:57 +08:00
78f7eab61d *: refactor distsql and executor. (#2942) 2017-03-29 15:20:25 +08:00
3bfc8207bc expression: fix bug about function equal logic. (#2951) 2017-03-29 14:38:39 +08:00
ee7df059e3 statistics: refactor package. (#2913) 2017-03-29 11:32:40 +08:00
1253d2b87b builtin: get_format function implemented. (#2932) 2017-03-29 09:11:47 +08:00
7031e28ab1 Built-in Function: bin (#2924) 2017-03-29 09:07:12 +08:00
9f17a88377 fix some typo in comments (#2943) 2017-03-29 08:55:49 +08:00
62c4685a7c plan: fix sort plan explain (#2937) 2017-03-29 08:51:39 +08:00
b799b182e8 store: Support table scan, index scan and selection with DAG. (#2930) 2017-03-28 22:36:21 +08:00
1789a43db5 *: update pd vendor. (#2944) 2017-03-28 21:07:48 +08:00
a89879d61a executor: skip the unstable test. (#2939)
Multiple package runs on the same process in parallel, we can't make sure the test always pass.
2017-03-28 15:12:50 +08:00
99b7606624 executor: Make admin test stable (#2940) 2017-03-28 14:50:30 +08:00
Van
c83bdda7b0 builtin: add random-bytes function (#2927) 2017-03-28 14:02:45 +08:00
c8c7dde6d7 plan: enforce property for index join. (#2938) 2017-03-28 12:02:37 +08:00
60ba388e0c *: check visibility for show databases and tables (#2934) 2017-03-28 11:28:50 +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
95fb7d0ec3 Revert "fix sort in explain (#2933)" (#2936)
This reverts commit a6bf9231f985c6fe6a7049f9d56026d14a92d07d.
2017-03-28 00:23:33 +08:00
a6bf9231f9 fix sort in explain (#2933) 2017-03-27 23:59:38 +08:00
6c6f23f329 Maxiaoyu/ordered merge join (#2931)
plan: make merge sort keep ordering during planning
2017-03-27 19:27:43 +08:00
1944ba5772 server: add txn check (#2920) 2017-03-27 18:03:04 +08:00
9f23ab74a9 store/tivk: wait task channel in Close (#2925) 2017-03-27 12:28:31 +08:00
6aa45e441c Make index serial scan concurrency configurable and fix golint errors. (#2928) 2017-03-27 00:57:19 +08:00
5bb70abbe5 * built-in: add "Sin(x)" function (#2885) 2017-03-27 00:44:46 +08:00
e95ff609b7 builtin function: add inet_ntoa builtin function (#2887)
* add inet_ntoa builtin function
2017-03-25 23:08:19 -05:00
277893a9a4 builtin: add maketime built-in function (#2889) 2017-03-25 17:33:58 +08:00
d1a8cd4da1 builtin: add insert built-in function (#2855) 2017-03-25 17:00:56 +08:00
146486f44c store: make test stable (#2922) 2017-03-24 07:25:23 -05:00
1513adc986 store/tikv: fix coprocessor iterator goroutine leak. (#2921) 2017-03-24 19:14:46 +08:00
88bfb59db2 mod: add sha2 built-in function (#2914)
* mod: add sha2 built-in function
2017-03-24 05:44:52 -05:00
bd0220c555 builtin: add quarter built-in function (#2919)
Implement the QUARTER built-in function.
2017-03-24 18:24:47 +08:00
ed56d82fa7 sessionctx/variable: refine TiDB specific system variables. (#2915) 2017-03-24 12:57:33 +08:00
a5b1d2c0eb session: Clean up retry log (#2917)
We do not need to print sql text every time.
2017-03-24 10:07:49 +08:00
e40243059d table: log more detail on incorrect utf8 value. (#2916) 2017-03-23 20:49:24 +08:00
7aa024c9a0 *: add UTF8 check global variable. (#2899) 2017-03-23 08:56:21 +08:00