Commit Graph

3132 Commits

Author SHA1 Message Date
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
2a052443d8 executor: reset kvRange in TableReaderExec.Close (#19447)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 15:25:40 +08:00
c8f436cbc6 executor : refine partition table read for tiflash table read (#19406)
* executor : refine partition table read for tiflash table read

* refine code

* address comments

* fix ci

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 14:29:51 +08:00
8fe2a0b5d8 statistics: drop stats should delete topn (#18160)
* statistics: drop stats should delete topn

* add rest

* fix test

* fix test

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 14:15:51 +08:00
eff7837795 executor: support 'recover index' in clustered index tables (#19284)
* support 'recover index' in clustered index table

* ddl: add truncate to buildCommonHandleFromChunkRow

* executor: truncate the updated handle

* executor: set core.HandleCols in the initialization of RecoverIndexExec

* refine code

* remove unused code

* fix integration test

* fix integration test

* address comment

* early return when recovering clustered pk

* remove panic

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 11:51:52 +08:00
e33e8fd559 executor: move TestForServersInfo and TestForTableTiFlashReplica to serial test suit (#19433)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-08-26 09:49:21 +08:00
9e6688c1bb executor: uncomment the join test for issue #11896 (#19446)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 08:51:22 +08:00
xhe
04176779e4 executor: validate 'set tidb_enable_parallel_apply' (#19379)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-25 19:26:51 +08:00
69bfa3bf26 executor, server: reduce connect/disconnect log spam (#19308)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: goroutine <ngaut@users.noreply.github.com>
2020-08-25 19:17:51 +08:00
c04bda6db7 *:Speed up parse slow-log when query slow_query #15371 (#19139)
* speed up the slow log query

* speed up slow log query

* change the MaxRow num

* change channel location

* correct

* fix some bug

* fix error situation

* change ctx.Done() location

* update

* Update main.go

* change func name

* fix the len(rows)=0 bug

* remove else

* update slow_query_test

* update slow_query_test.go

* update slow_query_test.go

* update slow_query_test.go

* append offset var

* fix bug

* add notes

* remove fmt

* remove notes

* remove notes

* update

* update

* version back

* update offset

* update

* use len(log)==0 to check

* update

* update offset struct

* update offset

* defer recover

* update slow_query_test

* update offset

* remove fmt.print

* check error first

* update panic situation

* update failpoint test

* update failpoint test

* update panic test

* test

* test

* update test

* update failpoint name

* test

* update slow_query.go

* check err

* Code specification

* remove pointer

* update getLineIndex func

* update setFieldValue func

* debug

* update func name

Co-authored-by: crazycs <crazycs520@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-25 19:00:22 +08:00
30456dfaa5 executor: Uncomment join test (#18697)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-25 17:48:52 +08:00
e6a69309a5 range: build right range for NULL value on index column (#19385) 2020-08-25 13:55:49 +08:00
f9fe7798ba Fix error result union scan with apply (#19300) 2020-08-25 13:39:12 +08:00
3ac0baf61c *: fix unable prune problem caused by mismatch column infos (#19391) 2020-08-25 12:24:48 +08:00
f5fa3e7aa7 executor: fix index join error when join key is ENUM or SET (#19235)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-24 20:50:51 +08:00
2f100eca2b config: Add labels configuration (#19212)
* add labels

* add config test

* fmt file

* add test and example

* add intergration test

* add comment

* address the comment

* solve test error

* address the comment

* fix comment

* fix comment error

* remove example

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-24 19:17:51 +08:00
9620b710a0 executor: fix log desensitization bug in prestmt (#19392) 2020-08-24 17:31:51 +08:00
650be7c438 execute: add rpc runtime stats information for insert/update/replace statement (#19334) 2020-08-24 16:10:33 +08:00
2c2ff934b2 util: rewrite parser warings for integer display width (#18775) 2020-08-24 14:52:29 +08:00
dd24cbd1ac update tidb for stdddev_pop (#19384) 2020-08-24 12:41:04 +08:00