602bcd2e40
*: fix some structcheck lint warnings ( #22983 )
2021-03-02 23:12:54 +08:00
35534ae752
*: apply golangci-lint to the new code ( #22824 )
2021-02-24 18:24:03 +08:00
8ddaf03db1
executor: fix load data losing connection when batch_dml_size is set ( #22724 )
2021-02-05 10:51:42 +08:00
c7165bc518
executor, planner: ON DUPLICATE UPDATE can refer to un-project col ( #14412 )
...
Co-authored-by: Kenan Yao <cauchy1992@gmail.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2021-01-06 19:03:51 +08:00
f55e8f2bf8
table: fix insert into _tidb_rowid panic and rebase it if needed ( #22062 )
2021-01-05 18:18:19 +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
0735a0c924
executor: fix insert ignore into not exists partition ( #21904 )
...
Signed-off-by: lysu <sulifx@gmail.com >
2020-12-23 17:19:29 +08:00
f9092ad3fd
executor: generated column make overflow error as warning when no strict sql mode ( #21879 )
...
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com >
2020-12-21 16:21:30 +08:00
2905b0defb
*: modify autoid allocator's Alloc() method, add context and tracing ( #21617 )
2020-12-10 17:24:21 +08:00
32d19b78e1
*: refine runtime stats display and tiny bug fix for metrics ( #21022 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2020-11-26 16:35:25 +08:00
c554481392
executor: update memory usage in batch insert/delete ( #20866 )
2020-11-11 13:11:40 +08:00
8d35f17c17
Update the errors dependence to the latest version ( #20917 )
2020-11-10 09:50:39 +08:00
522275783e
executor: fix auto-id allocation during statements retry ( #20659 )
2020-11-09 16:37:12 +08:00
bacd348560
executor: modify the error message of insert time value ( #20847 )
2020-11-06 16:24:40 +08:00
ae5dc3f69a
executor: fix issue of load data statement doesn't record into slow query and statements_summary ( #20713 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2020-11-04 16:27:01 +08:00
0017a1717e
*: fix the bug about the insertRuntimeStat.String() ( #20190 )
...
Signed-off-by: jyz0309 <45495947@qq.com >
2020-09-27 18:48:43 +08:00
bb354b0c30
*:Record the time consuming of memory operation of Insert Executor in Runtime Information ( #19574 )
2020-09-23 20:57:40 +08:00
94704d0cc4
expression: incorrect error message of inserting enum & set ( #19380 )
2020-09-11 15:48:24 +08:00
bada2801ac
*: fix cop task runtime information is wrong in the concurrent executor ( #19849 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2020-09-11 14:14:37 +08:00
968d0d76ae
executor: cleanup useless code in batch checker ( #19511 )
...
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com >
2020-09-01 12:41:52 +08:00
650be7c438
execute: add rpc runtime stats information for insert/update/replace statement ( #19334 )
2020-08-24 16:10:33 +08:00
1dc67745dd
ddl: disallow change auto_random default value by 'ALTER COLUMN' ( #19365 )
2020-08-24 11:03:14 +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
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
761a961ba0
kv: refactor MemBuffer and reduce the memory usage ( #18372 )
2020-07-15 15:26:25 +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
127ad504b2
table: optimize add record used in lightning ( #18102 )
2020-06-24 15:18:01 +08:00
2a2c93bc68
ddl, sessionctx: make auto_random aware of auto_increment_increment ( #17575 )
2020-06-05 14:27:25 +08:00
d66d5028da
*: support plain insert on cluster index table ( #17674 )
2020-06-05 13:23:43 +08:00
a3d5082094
sessionctx, executor: add session var to control explicit insertion on auto_random column ( #17102 )
2020-05-26 20:32:10 +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
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
6814f8c94b
*: refactor Handle in table package ( #16807 )
2020-04-27 10:04:50 +08:00
7b25ce0d94
*: support auto_random table option ( #16750 )
2020-04-24 23:14:51 +08:00
d901863643
executor: insert negative primary key into auto_random table won't trigger rebase ( #15397 )
2020-04-15 20:56:37 +08:00
c81e903804
*: use the revertable sandbox to buffer mutations ( #15931 )
2020-04-03 14:54:27 +08:00
3ced6bc9ac
dml: support default expression cache when insert ( #15216 )
2020-03-19 10:51:22 +08:00
1ff32ace27
executor: use MySQL compatible truncate error code ( #15422 )
2020-03-18 12:28:43 +08:00
4adff06b99
executor: reduce task queue size to reduce memory consume for load statement ( #15369 )
2020-03-14 20:23:53 +08:00
88dd552a6d
*: fix autoid allocation to avoid quickly exhaustion ( #15261 )
2020-03-13 10:50:03 +08:00
b504d37924
*: refine the table.Table interface ( #15227 )
...
remove unnecessary methods.
"The bigger the interface, the weaker the abstraction -- Rob Pike"
2020-03-10 13:40:56 +08:00
55b3e1110c
*: reduce the allocation caused by Datum.Copy ( #15219 )
2020-03-09 17:38:46 +08:00
dcb8b3d5dd
executor: fix last_insert_id in auto_random mode ( #15145 )
2020-03-05 15:59:18 +08:00
a528e60e3b
*: add auto_random id cache for statement retrying and table recover ( #14711 )
2020-02-19 18:53:03 +08:00
007c0e6656
*: support default expression value for sequence ( #14589 )
2020-02-13 18:50:33 +08:00
870d4b19c8
*: support auto_increment_increment & auto_increment_offset. ( #14301 )
2020-01-08 10:18:39 +08:00
ebc4fa9dee
executor: resort fields for reducing the memory allocated ( #14208 )
2019-12-31 17:19:59 +08:00
c1bc9ffe5b
*: add memory tracker for InsertExec and ReplaceExec ( #14179 )
2019-12-30 11:43:01 +08:00