Commit Graph

11712 Commits

Author SHA1 Message Date
0c822d13a1 util: avoid spilling to disk after rowContainer has been closed. (#19750) 2020-09-09 13:04:52 +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
0b306ef351 executor: fix show table regions bug (#19562) 2020-09-09 10:58:41 +08:00
5435980006 store/tikv: implement async commit version of resolve locks (#18467) 2020-09-09 08:09:51 +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
bc3c84afb2 ddl: add partition should not take table information (#19671) 2020-09-08 21:33:53 +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
354f3997c0 executor: add concurrency limit on union executor (#19827) 2020-09-08 19:16:23 +08:00
9c73cbaa3b domain: make TestT more stable (#19879) 2020-09-08 18:41:38 +08:00
05809a9cf2 Revert "expression, types: fix decimal precision for SUM function (#19592)" (#19882) 2020-09-08 18:21:18 +08:00
2f2c57ecc8 executor, util: fix TestGlobalMemoryTrackerOnCleanUp ci error (#19863) 2020-09-08 18:15:46 +08:00
2d52e99d0f executor: fix error tikv_cop_wait metric (#19859)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-08 16:59:53 +08:00
0e26d40948 distsql: fix wrong default max allowed packet (#19573)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-08 15:35:53 +08:00
b446feaf94 test: fix ci failure in TestParallelDropSchemaAndDropTable (#19825) 2020-09-08 15:16:47 +08:00
fce9a669c2 config: enlarge the default value of max-txn-ttl (#19826) 2020-09-08 14:27:29 +08:00
f8c8217d5c unistore: support analyze multi-ranges (#19838) 2020-09-08 13:40:41 +08:00
e644cfcc73 grafana: handle negative delta in runtime dashboard (#19848) 2020-09-08 11:23:30 +08:00
47270445d9 server: fix the missing detachment for the mem/disk tracker (#19794) 2020-09-08 10:48:51 +08:00
dy
726341146b expression, types: fix decimal precision for SUM function (#19592) 2020-09-07 16:23:54 +08:00
221223b46b executor: add more runtime information for join executor (#19721)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-07 14:53:20 +08:00
3d33bdf49f privilege: fix wrong result of SHOW GRANTS (#19704)
* fix show grants user filter

* address comment

* address comment

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-07 14:45:20 +08:00
a961a70c53 executor: fix fast analyze race condition on session ctx (#19716)
* executor:  fix fast analyze race condition on session

* unify return error

* make lint happy

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-07 14:35:21 +08:00
397e31a673 planner: fix incorrect result for != all (subq) (#19576)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-07 14:07:21 +08:00
c283bc66bd txn:support wait second grammar for "select for update" (#19630)
* support select for update wait seconds grammar

* use function

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-07 13:47:59 +08:00
4f9b3508dd infoschema: add digest for process list (#19622)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-07 13:23:39 +08:00
c537ecf678 planner: mark handle columns as needed when building plan for DELETE (#19723) 2020-09-07 11:32:44 +08:00
bcfaaf5595 executor: implement meldata for rank funcs to track memUsage (#19766) 2020-09-07 11:09:06 +08:00
7cd20c0373 executor: implement memDelta for count funcs to track memUsage (#19770)
* executor: implement memDelta for count funcs to track memUsage

* fix stdlib unsafe need be group together and before non-stdlib group in ../../executor/aggfuncs/func_count.go

* fix UpdatePartialResult memDelta return if err != nil

* fix
1 DefPartialResult4CountSize is the memory usage of AllocPartialResult, UpdatePartialResult will not use more memory, return 0, err.
2 in testcase TestMemCount count funcs are not distinct, use defaultUpdateMemDeltaGens and set isDistinct false

* fix UpdatePartialResult not use more memory

* fix  MergePartialResult memDelta

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-05 17:43:46 +08:00
41176776a7 util: fix unstable unit test testDiskSerialSuite.TestRemoveDir (#19762)
* fix

* fix

Co-authored-by: wjHuang <huangwenjun1997@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-05 17:33:55 +08:00
78166329e2 executor: set the correct resultCh for task when indexHashJoin keep order (#18840)
* executor: set the correct resultCh for task when indexHashJoin keep order (#18757)

* update test

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-05 17:24:57 +08:00
7f56b302d5 executor: implement memDelta for varpop to trace the memory usage (#19755)
* try to solve tidb issue 19745

issue link: https://github.com/pingcap/tidb/issues/19745

* format file

* bug fix: return memDelta when err occur

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-04 19:55:09 +08:00
a428d472e9 *: remove the unused terminology (#19727)
* *: remove the unused terminology

* rename back

* delete more

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-04 17:12:01 +08:00
15432287cc expression: incorporate unicode_ci into constant propagation (#19555)
* handle constant propagation

* fmt

* uncomment

Co-authored-by: wjHuang <huangwenjun1997@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: Zhang Jian <zjsariel@gmail.com>
2020-09-04 17:03:29 +08:00
ce849c3e19 *: remove DirtyDB and DirtyTable to reduce memory usage (#19042) 2020-09-04 16:50:36 +08:00
5717194f8c executor: Extract plan id from execution summaries for TiFlash cop response (#19791)
* extract plan id from execution summaries for tiflash cop response

* fix ci error

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-04 16:26:01 +08:00
xhe
82a3724748 ddl: alter rules when truncating partitions (#19505) 2020-09-04 14:54:05 +08:00
5d7c8ebeaa privilege: forbidden creating table in metrics_schema and performance_schema (#19705)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-09-04 12:54:21 +08:00
5b26588eba expression: add linear search for the interval function (#19543)
* add linear search for interval

* update test

* remove debug info

* fix mistakenly erased code

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-04 12:07:32 +08:00
2e29709684 test: stable the test case (#19683)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-04 11:50:52 +08:00
19590a7a5d executor: infoschema table partition method wrong for range column partition (#19633) 2020-09-04 11:05:38 +08:00
60172ca621 ddl: trim enum and set trailing spaces automatically (#19612)
* add test

* check tidy

* change parser

* change parser

* update parser

* update parser

* fix check

Co-authored-by: tangenta <tangenta@126.com>
Co-authored-by: Zhang Jian <zjsariel@gmail.com>
2020-09-04 08:40:21 +08:00
ebb5573869 expression: remove the ambiguous error message of unix_time ... (#19707) 2020-09-03 23:53:08 +08:00
9c344ce66e types: fix bug of converting enum and set (#19699) 2020-09-03 23:43:49 +08:00
2ef1afe604 test: stabilize test TestCluster (#19646) 2020-09-03 22:51:06 +08:00
48eb295925 *: change some tests using failpoint to serialSuite (#19753)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-09-03 21:12:58 +08:00
fdcc19eb11 sessionctx: fix a bug where update stmt not considered when clipping negative num to 0 (#19605) 2020-09-03 20:16:17 +08:00
862d8b8996 check privileges for show stats (#19702) 2020-09-03 16:48:44 +08:00