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
b4f0854d19
executor: implement memDelta for avg funcs to track memUsage ( #18901 )
2020-08-28 14:01:41 +08:00
127c3aa61d
executor: support admin cleanup for clustered index table ( #19522 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-28 11:46:52 +08:00
88e47b8066
executor: add a test for IndexLookUp executed as inner child of Apply ( #19542 )
2020-08-28 11:18:11 +08:00
ba60cf5a69
charset: implement utf8_unicode_ci and utf8mb4_unicode_ci collation ( #18776 )
2020-08-27 23:20:48 +08:00
2ed5eb5ad7
executor: rename test files for select into outfile to avoid file exists error ( #19528 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-27 22:37:22 +08:00
07453ff735
planner: fix wrong columns pruning for partition union all ( #19527 )
...
* planner: move partition union solver before predicates push down
* fix
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-27 20:42:55 +08:00
49af6a511f
expression: Support stddev_pop function ( #19195 )
...
* add stddev_pop function
* fix for make check
* not push down
* add util test
* stddevpop inherit from varpop
* fix typo
* support std and stddev
* update go.mod
* uodate parser master
* fix ditto
* fix fix
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-27 19:42:53 +08:00
db3c96b3ff
executor: add transaction commit runtime information in slow log ( #19366 )
2020-08-27 16:18:47 +08:00
bba4c64a00
executor: fix alter user statement for user() and current_user() ( #19345 )
2020-08-27 15:55:19 +08:00
b78f4896fe
statistics, util/ranger: improve selectivity calculation for DNF filters ( #18741 )
2020-08-27 15:40:12 +08:00
547c5b14cf
executor: partition table reader below apply should reset in Open ( #19514 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-27 14:41:01 +08:00
253d43fb51
*: add execution retry count in slow log and slow_query ( #19487 )
2020-08-27 14:18:06 +08:00
1417991cef
executor: reset INLJ.task when Close ( #19513 )
2020-08-27 14:05:36 +08:00
e356136b72
*: annotate execution info in runtime/trace ( #19407 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-27 11:23:36 +08:00
deec855913
executor: fix incorrect results when there is an IndexLookUp under the inner side of an Apply ( #19496 )
2020-08-27 11:11:23 +08:00
933c0667bf
executor: reduce parameter count for detach ranges methods ( #19486 )
...
* executor: add merge flag
* use fields to pass more params
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-27 10:28:52 +08:00
945f7cc4a0
ddl, tables: support the column type change between the integer types ( #19059 )
2020-08-26 21:30:14 +08:00
cc661e0c2f
planner: make a copy of column before modifying its InOperand ( #19472 )
2020-08-26 16:43:35 +08:00
892c3a0a8d
planner: do not construct index merge join when inner is partition table ( #19440 )
...
* planner: do not construct index merge join when inner isn't range partition table
* fix
* fix
* fix
* fix
* address comment
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-26 16:12:22 +08:00
ce1ad327d7
executor: fix wrong results when index join on union scan partition table ( #19436 )
...
* executor: fix wrong results when index join on union scan new parition table
* move partitionTableReader inner buildUnionScanFromReader
* fix conflicts
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-26 15:51:22 +08:00