Commit Graph

609 Commits

Author SHA1 Message Date
fcf60e0a27 planner, table: set PrimaryPrefixColumnIds correctly (#23250) 2021-03-12 21:18:55 +08:00
f8da635f5a *: refactor and fix the usages of DecodeIndexKV for clustered index (#23096) 2021-03-10 16:46:55 +08:00
284da110b2 executor: fix cast function will ignore tht error for point-get key construction (#22869) 2021-03-09 18:14:55 +08:00
b8f6ac0dd3 *: fix wrong replace or insert-on-dup behavior on prefixed clustered index (#23091) 2021-03-09 16:54:55 +08:00
5f73c822ca kv/union_store:remove tableinfo from union_store (#22976)
Co-authored-by: disksing <i@disksing.com>
2021-03-04 16:30:42 +08:00
9768e45476 session: add a test case for issue 19127 (#21010) 2021-03-04 11:50:54 +08:00
6f250b625e *: fix a bug that collation is not handle for text type (#23045) 2021-03-03 22:04:54 +08:00
b5a9076aea *: new secondary index value format (#20220) 2021-03-03 21:16:54 +08:00
80be93b760 *: make binlog and clustered index exclusive (#22956) 2021-03-02 20:18:54 +08:00
24c9df147d *: refactor table.Table interface, clean up unnecessay methods (#22430) 2021-03-02 19:48:54 +08:00
9dc2f10232 table: fix err check (#23004) 2021-03-01 19:18:54 +08:00
3d4def7eef planner, statistics: allow (auto) analyze single partition in dynamic-only mode (#22625) 2021-03-01 17:23:31 +08:00
6bd6df7d1e planner: let tikv know primary prefix columns info (#22829) 2021-03-01 16:20:54 +08:00
27db39b480 *: use CLUSTERED and NONCLUSTERED to control primary key type (#22409) 2021-02-05 20:41:41 +08:00
40fb9e2d86 ddl: fix update with point get will try to set default value for the nil of not-null column (#22500)
Signed-off-by: AilinKid <314806019@qq.com>
2021-01-28 13:47:02 +08:00
68aaa2fa7e *: fix auto-id allocate tracing (#22371) 2021-01-13 12:19:58 +08:00
fdd
2c4a60daff executor: fix tidb can not show view data_type (#22363) 2021-01-12 17:33:28 +08:00
c3e54962d1 executor: fix a bug that can not insert null into a not null column in the empty SQL mode (#21237)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-25 11:44:00 +08:00
1f16f74bd9 planner: add special partition pruner for list columns partition (#21577) 2020-12-23 11:21:53 +08:00
8935ad1d80 table/tables: fix a DATA RACE in a unit test case (#21733) 2020-12-15 11:57:24 +08:00
a02660e2dd *: fix tiny bug and add more DML test for list partition table (#21423)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-12-11 21:32:22 +08:00
2905b0defb *: modify autoid allocator's Alloc() method, add context and tracing (#21617) 2020-12-10 17:24:21 +08:00
0e76bd3f04 table: fix create columns partition table failed when contain SQL key word (#21588) 2020-12-10 16:47:21 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
c218c58218 *: support select from tablesample (#20883) 2020-12-03 16:46:18 +08:00
549a34f1e8 executor: fix duplicate error message in warnings (#20920)
Co-authored-by: wjHuang <huangwenjun1997@gmail.com>
2020-12-02 11:02:38 +08:00
b08bfd1ff7 ddl: fix duplicate entry message report by add index (#21241) 2020-11-25 17:42:50 +08:00
afaf38fdc8 executor: Make tidb_constraint_check_in_place session variable work for unique index (#20939) 2020-11-25 16:31:54 +08:00
ca247e8928 table: fix insert value into hash partition table which not int (#21182) 2020-11-24 13:05:54 +08:00
afb2ab95f0 table: fix zero date in different sqlmode (#20206) 2020-11-24 12:46:51 +08:00
c2fae0343b table/tables: make the test case more stable (#21117) 2020-11-23 17:21:54 +08:00
ef57bdbbb0 *: fix somes bugs related to the clustered index and the new collation (#20934) 2020-11-12 15:18:15 +08:00
26d42c9e23 planner: add partition pruner for list (columns) partition (#20740) 2020-11-09 13:09:49 +08:00
04729d2b25 executor: fix wrong default zero value for year type (#20824) 2020-11-04 16:12:01 +08:00
de4612597c transaction: lock unique key for delete operation (#19220)
Signed-off-by: you06 <you1474600@gmail.com>
2020-10-29 12:08:26 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
5738191a23 *: clean some stuff related to dirtyTable (#20554)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-10-21 12:19:26 +08:00
08069206ed table: should not skip when default value is not null (#20491) 2020-10-20 15:23:30 +08:00
afd223c32b ddl: support create list partition table (#20279) 2020-10-15 20:24:24 +08:00
dcefa58035 *: use global stats & make ddl/feedback/show/export works(part III) (#20271) 2020-10-14 16:11:33 +08:00
6342fa6a50 ddl: fix corrupted default value for bit type column (#18036) 2020-10-04 12:59:40 +08:00
132d9817d7 executor: support partition pruning for IndexJoin inner table (#19990) 2020-09-29 11:08:53 +08:00
32d86e26c2 *: fix message for duplicate entry error (#20203)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-25 16:10:56 +08:00
1c9c5e39af executor: fix clustered index with new collation bug (#19955) 2020-09-14 15:41:07 +08:00
94704d0cc4 expression: incorrect error message of inserting enum & set (#19380) 2020-09-11 15:48:24 +08:00
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