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
32963d3387
*: make load data atomic by default ( #18807 )
...
Signed-off-by: Tina Fritz <tina77fritz@gmail.com >
2020-08-06 21:05:49 +08:00
d5dec67d63
*: add ddl metrics in metric profile ( #18978 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2020-08-06 19:57:03 +08:00
3df573d2fc
planner,executor: use new table partition implementation and fix CI ( #18981 )
2020-08-06 17:50:40 +08:00
574540aa06
fix pessimistic check ( #19004 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-06 14:00:43 +08:00
931ff98df5
simple fixes for the staticcheck linter ( #18923 )
...
Note that this found 2 bugs where errors were being silently ignored.
These are really simple fixes that didn't require much thought.
There are still more staticcheck warnings that should be fixed.
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-06 13:38:17 +08:00
b363937744
transaction: fix union select for update race ( #19006 )
...
* transaction: fix LockKeys race
* do not update delta for lock keys
* fix more race
* fix another race
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-06 09:24:17 +08:00
45780a5e7c
executor: fix unstable leak test on TestPlanCacheClusterIndex ( #19009 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-05 20:31:52 +08:00
51dc393088
executor: batch checker skip primary index key for clustered index table ( #18965 )
...
Co-authored-by: crazycs <crazycs520@gmail.com >
2020-08-05 16:49:18 +08:00
2c70616c09
executor: add empty executor runtime information for tidb cop handler ( #19000 )
2020-08-05 15:46:38 +08:00
8976ffef9c
store: add lock for runtime stats to fix panic caused by concurrent execution ( #18983 )
2020-08-05 13:53:44 +08:00
f3abdb027f
executor: handle index join for the new partition table implementation ( #18862 )
...
* planner,executor: implement PartitionTable executor for the three reader
* add the new file
* make fmt
* forget to add the test file to git
* fix a tiny bug
* executor: handle partition table for index join
* make golint happy
2020-08-05 10:42:18 +08:00
4e829aaee7
planner,executor: fix index merge for partition table ( #18940 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-04 20:38:17 +08:00
bd06d239a2
tablecodec: support decode common handle bytes to strings ( #18953 )
...
* tablecodec: support decode common handle bytes to strings
* address comments
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-04 13:35:48 +08:00
d0639b0056
*: use the newly designed memdb ( #18657 )
...
* *: use the newly designed memdb
* address comments
* remove duplicated comments
Co-authored-by: Evan Zhou <coocood@gmail.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-03 20:51:05 +08:00
6088e58fa7
ddl: check the tiflash replica count when setting tiflash replica ( #18826 )
2020-08-03 15:10:47 +08:00
03003538d1
*: fix a lot of typos ( #18917 )
2020-08-03 11:03:33 +08:00
5f393fde7e
*: support user defined variable and SET clause in LOAD DATA statement ( #18753 )
2020-08-03 10:42:10 +08:00
2a8b968453
test: stabilize TestClusterIndexShowTableRegion ( #18868 )
2020-07-31 16:42:53 +08:00
a50fbab55d
sessionctx: Make it possible to set allow_auto_random_explicit_insert as global ( #18896 )
2020-07-31 16:23:14 +08:00
a63fa79d90
transaction: lazy check not exists error for pessimistic transaction ( #18877 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-07-31 08:44:49 +08:00
4000174c8c
executor: fix batch point get return wrong result for in(null) ( #18851 )
...
* executor: fix batch point get return wrong result for in(null)
* fix CI
* address comment
Co-authored-by: crazycs <crazycs520@gmail.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
Co-authored-by: Evan Zhou <coocood@gmail.com >
2020-07-30 17:17:03 +08:00
5dd7cd8553
planner/core: implement Explain for the new partition table ( #18834 )
...
Co-authored-by: lysu <sulifx@gmail.com >
2020-07-30 15:37:02 +08:00
c397584065
executor: add runtime information for the batch-point-get executor ( #18828 )
2020-07-30 12:35:41 +08:00
1905ea0f55
executor: reduce log spam on pessimistic conflict ( #18365 )
...
Fixes #18255
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-07-30 11:27:03 +08:00
a1dc4381c5
planner,executor: implement PartitionTable executor for the three reader ( #18823 )
2020-07-30 11:00:55 +08:00
ccfc9b2ad0
executor: add foreign keys to SHOW CREATE TABLE ( #18360 )
...
This is backwards compatible with dumpers due to the way that TiDB handles foreign keys (set foreign_key_checks=0 behavior).
Co-authored-by: Nullnotnil <nullnotnil@ubuntu.lan >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-07-29 17:35:08 +08:00
98d58f31dd
executor: fix bug of stuck in query information_schema.columns ( #18847 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2020-07-29 12:29:22 +08:00
6ce8f0f56a
txn: support pessimistic transaction amend for specific ddls ( #18447 )
2020-07-29 11:35:31 +08:00
1e7454c81d
executor: batch point get support clustered index partition table. ( #18829 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-07-28 21:34:09 +08:00
5973d144de
brie: add integration test for br ( #18797 )
...
* brie: add integration test for br
* update br dependency
* fix ci
* fix ci
* address comment
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-07-28 19:59:02 +08:00