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
354f3997c0
executor: add concurrency limit on union executor ( #19827 )
2020-09-08 19:16:23 +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
47270445d9
server: fix the missing detachment for the mem/disk tracker ( #19794 )
2020-09-08 10:48:51 +08:00
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
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
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
ce849c3e19
*: remove DirtyDB and DirtyTable to reduce memory usage ( #19042 )
2020-09-04 16:50:36 +08:00
19590a7a5d
executor: infoschema table partition method wrong for range column partition ( #19633 )
2020-09-04 11:05:38 +08:00
9c344ce66e
types: fix bug of converting enum and set ( #19699 )
2020-09-03 23:43:49 +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
d0dfc77322
fix read failure from system tables tiflash_segments and tiflash_tables when some tiflash node is down ( #19714 )
...
Co-authored-by: crazycs <crazycs520@gmail.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-03 12:51:10 +08:00
66de0180ca
executor: fix fast analyze on single index ( #19662 )
...
* executor: fix fast analyze single index
* use idxCol.offset instead of compare column name
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-03 11:25:01 +08:00
0fd81a83e8
executor: fix file exists errors in tests for select into outfile ( #19717 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-02 19:57:54 +08:00
fd328394d4
executor, ddl: show full tables SYSTEM VIEW info ( #19451 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-02 10:01:40 +08:00
c56f318349
expression: support %r and %T format for STR_TO_DATE() ( #19474 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
Co-authored-by: Zhang Jian <zjsariel@gmail.com >
2020-09-02 09:53:00 +08:00
9047a9c881
executor: fix wrong behavior for max/min on ENUM/SET column ( #19552 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
Co-authored-by: Yiding Cui <winoros@gmail.com >
2020-09-01 21:18:03 +08:00
915d84d7ad
executor: add pessimistic lock keys runtime information ( #19547 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2020-09-01 20:46:31 +08:00
a5839ab674
executor: fix the issue that SELECT ... INTO OUTFILE returns runtime error ( #19438 )
...
* executor: fix the issue that `SELECT ... INTO OUTFILE` returns runtime error
* add more tests
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-01 20:09:25 +08:00
e24d1455af
types, executor: refine convertToMysqlEnum when src is of type Enum ( #19640 )
...
* types, executor: refine convertToMysqlEnum when src is of type Enum
* remove useless code
* refine
* add a TODO for collation
* add test for collate
* remove useless code
* address comment
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-01 19:35:12 +08:00
d7e6e1d773
planner: fix analyze index always analyze primary bug ( #19657 )
2020-09-01 17:18:59 +08:00
82502cc5e1
*: information_schema.tables add TIDB_PK_TYPE column for clustered index ( #19642 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-01 15:50:25 +08:00
968d0d76ae
executor: cleanup useless code in batch checker ( #19511 )
...
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com >
2020-09-01 12:41:52 +08:00
64a5e4f377
executor: refine fast-analyze sample step in old partition ( #19591 )
2020-09-01 11:57:54 +08:00
5d3cdf5d17
*: add execution retry time in slow log and slow_query and statement_summary ( #19625 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2020-09-01 11:16:52 +08:00
438945d294
*: enable clustered index by default ( #19582 )
2020-08-31 16:54:51 +08:00
1e9b519ff7
executor: clean outerMatchedStatus when HashJoin.Close is called ( #19510 )
2020-08-31 14:45:04 +08:00
89c1b0f3e6
executor: Implement memDelta for sum functions ( #19376 )
2020-08-31 14:24:10 +08:00
1d6c62c2ce
test: fix unstable tests using failpoint ( #19561 )
2020-08-31 09:32:26 +08:00
f3c8b008df
executor: accelerate TestMemCount ( #19581 )
...
* test
* executor: accelerate TestMemCount
* refine
* fix ci
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-29 21:03:21 +08:00
6fdd609c00
privilege: fix user change after show grants and add user existed check for show grants ( #19568 )
...
* fix show grant change user object and add check
* fix lint
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-28 20:54:21 +08:00
b3f5678717
executor: skip TestMemCount test case to make race test more stable ( #19578 )
2020-08-28 17:07:51 +08:00