Commit Graph

3098 Commits

Author SHA1 Message Date
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
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
xhe
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
201153e4ba planner: make except/intersect support different column type (#18846)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-18 15:31:14 +08:00
c6dc6b620d executor: fix explain format for connection (#18732)
Signed-off-by: niedhui <niedhui@gmail.com>
2020-08-18 15:16:48 +08:00
43a9d77965 *: compute and save correlation extended statistics in ANALYZE (#19134) 2020-08-18 10:56:40 +08:00
4f96c84637 util/rowcodec: make IsRowKey() recognize common handles (#19228) 2020-08-17 13:48:28 +08:00
5184a0d706 executor: fix the bug: can not join if join keys are type bigint and type bit (#19032)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-14 19:44:48 +08:00
7684dcb09d executor: fix common handle index lookup in union scan (#19206)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-14 19:10:47 +08:00
783d2f0ea9 executor: fix bug of tiflash executing apply (#19182)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-14 14:54:48 +08:00
030eab2bca planner: make single partition table support index join on inner side (#19151)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-14 11:52:22 +08:00
0448a54875 types: fix wrong hash key for decimal (#19131)
* types: fix wrong hash key for decimal

* fix bug

* fix & add test

* address comments and add test

* add test

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-13 19:29:17 +08:00
37984d7cb0 tests: improve tests for Windows platform (#19088)
* tests: improve tests for Windows platform

* fix race build

* update badger to fix kill issue on Windows

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-13 17:17:19 +08:00
3f38fa5d02 executor, planner: enable duplication check on prefix clustered index (#19099)
* executor, planner: store clustered prefix index intact

* make fmt

* address comment

* decoding row value is prior than decoding key

* unexport DecodeHandleToDatum()

* make fmt

* address comments

* fix unit test: TestSplitRegionTimeout
2020-08-13 14:05:18 +08:00
ed4004ac04 executor: fix apply with union scan and point batch point get (#19128) 2020-08-12 10:49:30 +08:00
c5c7bf87bb *: support CREATE / DROP / ADMIN RELOAD STATISTICS (#18880) 2020-08-11 17:27:48 +08:00
b8670fb231 executor: implement a concurrent hash table for Concurrent build (#16678)
* refine code of unsafeHashTable

* refine unsafeHashTable

* concurrentMapHashTable is ok

* update comments

* add comments

* add comments

* update make slickes

* update according to comments

* add comments

* update according to comments from liyuan

* remove useless estRows

* update test because the output of INL_hash_join does not promose order

* update testConcurrentMap

* update imports

* update test

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-10 19:32:19 +08:00
f172a1e08a planner: make some access paths check fit the clustered index (#18998)
* planner: make some access paths check fit the clustered index

* add test

* add test for outer join elimination

* make test stable

* fix test

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-10 15:33:17 +08:00
d81150394f executor: fix cluster index encode wrong key in plan cached point get (#19033)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-10 14:44:14 +08:00
b75a30fda8 transaction: always lock keys with presume not exists flag (#19071)
* transaction: lock delete unique index key

* always lock for key with presume not exists flag

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-09 22:50:48 +08:00
07ae6078e8 *: support clustered index for fast analyze (#18767) 2020-08-07 19:22:14 +08:00
2d54976495 *: convert lockKeys to key flag (#18966)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-07 10:23:59 +08:00
ceff1fcaf9 *: support generates metrics profile by different type (#18972) 2020-08-06 21:39:23 +08:00