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
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
1dc67745dd
ddl: disallow change auto_random default value by 'ALTER COLUMN' ( #19365 )
2020-08-24 11:03:14 +08:00
6831e487a8
Issue 19371 - Prepare statement with @Var (uppercase in var name fix) ( #19373 )
2020-08-23 21:34:47 +08:00
f8518988e4
ddl: improve compatibility for ALTER TABLE algorithms ( #19270 )
...
* ddl: always try a better algorithm
* ddl: adapt the test
* ddl: fix TestAlterAlgorithm
* ddl: better test fix
* ddl: typo
* ddl: update comment
Co-authored-by: bb7133 <bb7133@gmail.com >
* executor: typo
Co-authored-by: djshow832 <zhangming@pingcap.com >
Co-authored-by: bb7133 <bb7133@gmail.com >
Co-authored-by: djshow832 <zhangming@pingcap.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-21 16:30:57 +08:00
74ef1a2f9c
executor: fix build union-scan for index-join on patitioned tables ( #19333 )
2020-08-21 15:52:36 +08:00
6fe7fe4424
executor : fix refill table id bug for tiflash partition reading ( #19351 )
2020-08-21 15:17:36 +08:00
57e43bdea3
planner: workaround the panic of command EXECUTE when printing an expensive query log ( #19316 )
2020-08-20 17:45:47 +08:00
11d1c1bdf7
executor: fix select from partition table on TiFlash ( #19234 )
2020-08-20 17:19:36 +08:00
0d997f2b8b
update pd / br / unistore / tidb-tools dependencies ( #19323 )
2020-08-20 16:55:34 +08:00
13bd62e183
ddl, executor: fix clustered prefix primary key truncation ( #19320 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-20 14:45:22 +08:00
75ebe66a0b
planner: fix IsPointGetWithPKOrUniqueKeyByAutoCommit for clustered index ( #19255 )
2020-08-20 13:30:04 +08:00
47526d3986
executor: fix build table reader for index join on partition table ( #19210 )
2020-08-20 10:03:15 +08:00
0e3bd55fb9
executor, infoschema: display attribute visible in information_schema.tidb_indexes ( #19202 )
2020-08-19 17:13:44 +08:00
a2e2ce6339
*: use int instead of fmt.Stringer as executor id ( #19207 )
2020-08-19 13:39:31 +08:00
92513a2f4d
util: create the tmpdir if the directory is removed by mistake. ( #18970 )
2020-08-18 22:10:44 +08:00