0b306ef351
executor: fix show table regions bug ( #19562 )
2020-09-09 10:58:41 +08:00
449587a085
*: using standard error to replace terror ( #19425 )
2020-09-08 20:15:51 +08:00
ce849c3e19
*: remove DirtyDB and DirtyTable to reduce memory usage ( #19042 )
2020-09-04 16:50:36 +08:00
349adf85e0
table: use evalBuffer to improve performance of locatePartition ( #18818 )
...
* optimize hash and range partition insert
* add eval buffer for partition
* fix make dev
* go fmt
* format import
* fix ci test
* use pool to avoid race
* use pointer
* add some test
* fix range partition bug
* add multi table test case
* fix test case fail
* fix mysql test case
* fix mysql test case
* add addition column for handle
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-01 14:49:02 +08:00
22a18d1dd2
table: remove CastValues function ( #18785 )
...
Co-authored-by: Arenatlx <ailinsilence4@gmail.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-01 09:58:52 +08:00
438945d294
*: enable clustered index by default ( #19582 )
2020-08-31 16:54:51 +08:00
945f7cc4a0
ddl, tables: support the column type change between the integer types ( #19059 )
2020-08-26 21:30:14 +08:00
eb40424de4
ddl: support add global index operation on partition table ( #18402 )
2020-08-21 14:16:56 +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
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
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
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
9d77d7fc30
executor: fix wrong result for update ignore ( #18936 )
2020-08-03 16:48:07 +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
6ce8f0f56a
txn: support pessimistic transaction amend for specific ddls ( #18447 )
2020-07-29 11:35:31 +08:00
baf6c99b95
*: fix a bug causes indexed virtual generated column return wrong value and refine admin check table ( #18408 )
2020-07-24 12:59:47 +08:00
761a961ba0
kv: refactor MemBuffer and reduce the memory usage ( #18372 )
2020-07-15 15:26:25 +08:00
a6971dd685
*: support 'admin check table' on clustered index table ( #18346 )
2020-07-14 15:59:37 +08:00
cc60ac6bef
tests: fix several stability issues ( #18286 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-07-03 10:33:30 +08:00
99a83a1c6d
planner, unistore: support index scan for common handle on unique index ( #18302 )
2020-07-02 21:02:57 +08:00
4eb9d83eae
*: allow different shard_row_id prefixes in one transaction ( #18181 )
...
* *: allow different shard_row_id prefixes in one transaction
* Apply suggestions from code review
Co-authored-by: tangenta <tangenta@126.com >
* Update sessionctx/variable/session.go
Co-authored-by: tangenta <tangenta@126.com >
* add comments
* add unit test
* add var validation
* update builtinGlobalVariable
Co-authored-by: tangenta <tangenta@126.com >
2020-06-29 14:38:06 +08:00
3f6f36f742
*: refactor table.IterRecord and extract some methods ( #18214 )
...
* *: refactor table.IterRecord and extract some methods
* fix ci test
* fix ci test
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-06-29 09:24:34 +08:00
773b29102d
charset: add missing ascii check( #18193 )
2020-06-27 15:34:26 +08:00
6fa2badf38
util: move codec logic into tablecodec package ( #18173 )
...
* move codec logic into tablecodec package
* add key generation using physical table id
* remove using prefix
* change comment
* fix conclict
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-06-24 17:43:10 +08:00
127ad504b2
table: optimize add record used in lightning ( #18102 )
2020-06-24 15:18:01 +08:00
06e73a56cc
*: compatible with Go 1.14's checkptr ( #18189 )
2020-06-24 13:04:47 +08:00
7daa4a7f88
*: fix bugs that creating index on clustered index table or table with the virtual generated column ( #18114 )
2020-06-19 19:58:37 +08:00
c2c02cde4b
*: support record kv/pd time for a SQL statement ( #17591 )
2020-06-18 21:17:48 +08:00
7847cfdcca
planner, ddl: fix a bug delete data on delete-only state column ( #17048 )
2020-06-18 14:17:01 +08:00
c19018e06f
rename 'trancates' to 'truncates' ( #17968 )
2020-06-16 19:55:29 +08:00
6c305e2a49
ddl: apply common handle to index reorganization ( #17906 )
2020-06-16 09:52:39 +08:00
d445e55fc4
planner,executor: fix select big number on hash partition table panic ( #17881 )
2020-06-12 15:32:52 +08:00
1dc57ed9f4
table/tables: fix load partition when upgrade from an old TiDB ( #17971 )
2020-06-12 15:11:55 +08:00
3ab8f34110
table: fix a bug that replaces into a table with generated column fail ( #17838 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2020-06-10 15:19:30 +08:00
73c4673f30
*: support update/delete/insert ignore/duplicate update in single cluster index table ( #17721 )
2020-06-08 20:55:31 +08:00
1481cccb35
table: improve the coverage of key path in table ( #17026 )
...
* cover column
* cover collation union_scan
* go fmt
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com >
2020-06-08 12:39:45 +08:00
d66d5028da
*: support plain insert on cluster index table ( #17674 )
2020-06-05 13:23:43 +08:00
552e7709de
*: refactor decoder to avoid useless fieldType convert ( #17632 )
2020-06-03 18:13:56 +08:00
745e979a42
expression: fix data race when simpleRewriter rewrite ast.ColumnNameExpr concurrently ( #17353 )
2020-05-26 10:52:11 +08:00
38d63c2fa5
planner,table: optimize partition pruning performance for range columns ( #17249 )
2020-05-21 15:03:22 +08:00
4078eb4ae5
util/admin: support admin recover index on the partition table ( #17195 )
2020-05-20 17:10:44 +08:00
3176b00c02
executor: fix the issue that UNIQUE constraint on boolean column results in an incorrect result in a comparison ( #17245 )
2020-05-20 13:55:18 +08:00
c60ea27e6c
*: fix partition selection for the update statement ( #17285 )
2020-05-20 13:05:44 +08:00
ac30f5322e
mockstore: introducing embedded unistore ( #17156 )
2020-05-18 17:28:44 +08:00
1417ba2288
*: fix a bug that don't handle truncate properly for virtual generated column ( #17217 )
2020-05-14 20:57:55 +08:00
ce923ac85d
executor: only reserve the sign bit when auto_random column is signed ( #15566 )
2020-05-11 18:19:36 +08:00
c258afafe2
*: index codec for common handle ( #16998 )
2020-05-09 16:18:05 +08:00
66f4ae253e
planner: fix choosing the partition wrongly when the where stmt is only one eq condition. ( #16975 )
2020-05-09 14:02:20 +08:00