Commit Graph

3215 Commits

Author SHA1 Message Date
92a04ef024 trace: tee logs to runtime/trace output (#19994) 2020-09-23 18:45:38 +08:00
6271bd472e expression: fix inaccurate error info for year column out of range (#18871) 2020-09-23 15:52:30 +08:00
fd0299f58e *: remove simple rewriter (#19828) 2020-09-23 12:17:53 +08:00
640cb42f54 executor: do not reorder handles when building requests for IndexMergeJoin (#20138) 2020-09-22 15:11:59 +08:00
650515a420 executor: fix data race in test (#20142) 2020-09-22 14:58:38 +08:00
205f02125f executor: add an OOMAction for copIterator to adaptive control the memory usage (#19246) 2020-09-22 14:27:55 +08:00
1d5b724e82 executor: implement meldata for jsonobjectagg funcs to track memUsage (#19819) 2020-09-22 10:42:08 +08:00
91b6d9eedc executor: fix unexpected 'invalid auto-id' error in pessimistic txn retry (#20123) 2020-09-22 10:21:41 +08:00
4ec101d7e3 planner: support parentheses change precedence for set operators (#18968) 2020-09-21 13:06:10 +08:00
0e4b809cad *: remove expression index out of the experiment feature (#19998)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-09-18 13:25:37 +08:00
0684dba6c8 util/ranger: extract multi-column DNF conditions as access conditions (#19211) 2020-09-17 20:08:34 +08:00
3903c6b8b5 statistics: fix the display of bounds for indexes with date/time columns. (#19961) 2020-09-17 19:01:26 +08:00
0cba76107b executor: improve test coverage for partition table code (#20006) 2020-09-17 18:43:38 +08:00
ef7772dca4 kv: fix unsafe operation on value returned from memdb (#20063) 2020-09-17 17:18:04 +08:00
1c842919eb executor: fix hint not working in prepared statement (#19935) 2020-09-17 13:40:48 +08:00
f0db8c68e1 store/tikv: fix rpc runtime stats collect (#20014) 2020-09-16 13:47:05 +00:00
205c40186a *: support aggregate function stddev_samp() and var_samp() (#19810)
Co-authored-by: Zhuomin(Charming) Liu <lzmhhh123@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-16 17:44:41 +08:00
1bfeff96c7 executor: trace memory usage of lag/lead agg (#19966) 2020-09-16 15:12:39 +08:00
4b7c5db8ab planner: add cluster index in explain info of point get plan (#19867) 2020-09-16 12:23:09 +08:00
c679f847fc *: Bug Fix/CLUSTER_INFO system table may not work after PD is scaled-in (#19355) 2020-09-16 11:50:03 +08:00
31a91d825c config: remove pessimistic-txn.enable in config (#20008)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-09-16 10:53:08 +08:00
aed24e46e2 executor: fix query slow_query error when slow-log file not exist (#20000)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-15 20:45:00 +08:00
70a567e4cb session: refine error message desensitization (#19409) 2020-09-15 16:00:01 +08:00
3c04ec45b9 sessionctx, executor: tidb_dml_batch_size global (#19816) 2020-09-15 13:46:08 +08:00
b99376b521 executor: add metric definition in metric profile (#19978)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-14 17:51:08 +08:00
2a3a5ab076 *: disable new partition prune in master distribution (#19911) 2020-09-14 16:26:54 +08:00
1c9c5e39af executor: fix clustered index with new collation bug (#19955) 2020-09-14 15:41:07 +08:00
64c2cc5cbc sessionctx,store,kv: add a session variable to export last txn info (#19949)
Signed-off-by: zyguan <zhongyangguan@gmail.com>
2020-09-14 13:04:05 +08:00
c713018a9c executor: fix the unit test of the rank funcs memUsage tracking (#19896) 2020-09-14 12:45:05 +08:00
94704d0cc4 expression: incorrect error message of inserting enum & set (#19380) 2020-09-11 15:48:24 +08:00
bada2801ac *: fix cop task runtime information is wrong in the concurrent executor (#19849)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-11 14:14:37 +08:00
8446ec9e08 tikv: support scatter region with option api (#19844) 2020-09-11 14:02:34 +08:00
f13d605273 executor: fix cluster_slow_query time type in streaming request bug (#19938)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-11 10:55:09 +08:00
52d3dae1d3 executor: support memory track for max/min 2020-09-10 17:47:20 +08:00
0859e757a2 statistics: add default value of CMSketch for Analyze (#19455) 2020-09-10 16:57:01 +08:00
0fc03a9f71 session: use new PD TS as forUpdateTS on pessimistic write conflict (#19916)
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2020-09-10 16:35:20 +08:00
71d7262067 expression: Support distinct in select stddev_pop() (#19680) 2020-09-10 14:43:51 +08:00
5d52a34b24 executor: trace memory usage of ntile() (#19756) 2020-09-10 13:24:09 +08:00
80e04b55bb executor: trace memory usage of first_row() (#19757)
Signed-off-by: Howie <haoweili35@gmail.com>
2020-09-10 10:47:20 +08:00
4a638269dd executor: support memory trace for value functions (#19811) 2020-09-09 18:15:10 +08:00
5fd2919945 executor: trace memory usage of cume_dist() (#19832) 2020-09-09 17:25:19 +08:00
7b6a5cdb76 executor: fix escape for select into outfile (#19661) 2020-09-09 16:55:29 +08:00
0c36203f1d expression: add new scalar function IsTruthWithNull (#19621) 2020-09-09 16:03:10 +08:00
b6b9b8a6df exector, planner: Improve the performance of the aggFuncMaxMin by using sliding window (#16819)
* temp

* temp

* unit test

* executor: Improve the performance of `aggFuncMin` by using sliding window

* executor: Improve the performance of `aggFuncMin` by using sliding window

* executor: Improve the performance of `aggFuncMin` by using sliding window

add ut

* fix: ResetPartialResult

* add maxMin4Time.Slide and maxMin4Duration.Slide

* add benchmark

* add var `dirty`

* add a comment

* fix Decimal

* newMyDecimalMaxMinQueue

* newMyDecimalMaxMinQueue

* newMyDecimalMaxMinQueue

* newMyDecimalMaxMinQueue

* newMyDecimalMaxMinQueue

* implementing the maxMinQueue using heap

* fix import check

* fix import check

* fix check

* remove PushMyDecimal

* refactor maxMinHeap

* 尝试优化heap

* 尝试优化heap

* fix benchmark

* fix:*

* solved pr comments

* solved pr comments

* fix

* fix

* fix

* 先回家

* maxMin4IntSliding

* fix import

* fix

* new builder

* fix ut

* fix

* fix

* fix ut

* fix ut

* fix fmt

* add benchmark

* fix

* fix

* lazyload

* lazyload

* fix frame

* fix check_dev

* add a unit test

* sliding aggFunc

* sliding aggFunc

* fix

* move ut

* fix dev_check

* fix dev_check

* resolved comments

* refactor ut

* refactor ut

* refactor ut

Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
2020-09-09 14:31:41 +08:00
f9b71fca1f executor: implement memDelta for BitFunc funcs to track memUsage (#19808)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: HuaiyuXu <391585975@qq.com>
2020-09-09 11:57:10 +08:00
8a1f11ecee executor: add memory trace for percent rank agg functions (#19852)
* add memory trace for percent_rank func

* add unit tests

* add func_percent_rank_test.go

* modify year in license

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-09 11:33:12 +08:00
7e357b5092 executor: trace memory usage of row_number() 2020-09-09 11:16:33 +08:00
2836011470 executor, planner: refactor analyze tableID to analyzeTableID & add CanRuntimePrune (#19846)
* executor, planner:  refactor analyze tableID to analyzeTableID

* *: add util to help decide whether use new runtime prune partition executor

* address comments

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-08 23:49:39 +08:00
449587a085 *: using standard error to replace terror (#19425) 2020-09-08 20:15:51 +08:00
48388a7b48 planner,executor: enable plan cache for partition table (#19124)
* planner,executor: enable plan cache for partition table

* address comment

* tiny clean up

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: lysu <sulifx@gmail.com>
2020-09-08 19:40:39 +08:00