Commit Graph

476 Commits

Author SHA1 Message Date
870d4b19c8 *: support auto_increment_increment & auto_increment_offset. (#14301) 2020-01-08 10:18:39 +08:00
0bab73adf5 *: use new row-format in tidb (#12634) 2020-01-02 22:34:39 +08:00
e96be4580f plan, partition: add fast access path for hash partition (#13772) 2020-01-02 13:33:09 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +08:00
c1bc9ffe5b *: add memory tracker for InsertExec and ReplaceExec (#14179) 2019-12-30 11:43:01 +08:00
66b8add23d executor: support show extended columns statement (#14262) 2019-12-28 21:49:09 +08:00
86ae838d5a planner/core: disallow using hidden column in insert statement (#14150) 2019-12-26 16:08:55 +08:00
ef7adeb50d *: resort fields for reducing the memory allocated (#14172) 2019-12-23 17:10:09 +08:00
fce9870208 ddl,executor: add auto_random column option (#13127) 2019-12-23 14:51:51 +08:00
ed6497c451 table/tables: fix an error message when table has no partition for value (#14099) 2019-12-18 12:01:46 +08:00
42adca989e tables: basic support for hidden column (#13908) 2019-12-17 21:48:46 +08:00
13400ee89a table, executor: extract two functions for ShowCreateTable/DB (#13907) 2019-12-05 10:47:52 +08:00
7ccbdc12b3 tables: remove struct Table (#13877)
* done

* fix typo

* fix typo
2019-12-04 15:19:38 +08:00
5b6422df58 *: support read remote TiDB memory table of cluster (#13065) 2019-12-04 13:05:36 +08:00
dcbb5a162a table: format table error code and error message (#13233) 2019-12-03 19:59:39 +08:00
b1ffba6031 table: refactor the code to check the err (#13780) 2019-11-28 14:58:22 +08:00
37ea7d44a5 table: refactor code simplify string comparison (#13762) 2019-11-27 17:03:23 +08:00
e979cff6bb planner: add column mapping in explain result (#13640) 2019-11-27 16:39:19 +08:00
6b7e19ab41 extract a LogicalMemTable from DataSource to decouple memory/stored tables (#13741)
Signed-off-by: Lonng <heng@lonng.org>
2019-11-27 10:19:17 +08:00
3a48a48630 *: remove the assertion proto (#13732)
The assertion proto was introduced to verify the data consistency, but I find
it's complex and hard to achieve that goal. Adding additional assertions just
makes more memory occupation, especially in the large transaction.
So it's better to remove it.
2019-11-26 22:58:49 +08:00
a1dc0477a5 types: add error code for package types (#13300) 2019-11-26 19:45:14 +08:00
71e19a7308 Allocate continuous row id for single INSERT statement (#13648) 2019-11-22 16:22:08 +08:00
4b830aa7f6 *: Remove unused code (#13674) 2019-11-22 11:37:07 +08:00
d902895474 planner: a parition table's column UniqueID may mismatch or collide with planner's (#13490) 2019-11-19 16:06:33 +08:00
b5bb7fee67 table, executor: fix the data race of the partition table's hashcode (#13421) 2019-11-15 00:08:24 +08:00
ff6a4f7e8f kv: add error code for package kv (#12866) 2019-11-01 15:13:27 +08:00
36f0f37b40 expression, planner: remove some fields from `expression.Colum… (#12573) 2019-10-29 15:48:26 +08:00
cf6dd376a3 table: avoid write untouched index in auto commit and avoid get untouched index key from tikv (#12609) 2019-10-14 11:02:54 +08:00
01cddf63d9 dml : Multiple rows insert in a statement should have consecutive autoID if needed. (#11876)
* consecutive id

* add AllocN interface func for util/kvencoder/allocator.go

* fix allocN test

* fix allocN tests

* fix allocN test 1

* fix allocN test 2

* fix allocN test 3

* fix allocN test 4

* fix cache

* add auto consecutive increment id in insert executor

* add auto consecutive increment id comment in insert executor

* try fix test case

* fix session_test.TestAutoIncrementID autoid overflow

* fix session_test.TestAutoIncrementID unsighed autoid overflow

* fix autoid usigned computing overflow

* fix conflict with suli's PR

* fix index out of range

* merge similar function

* delete fillRowLazy

* fix commment

* fix bug of rebase

* fix auto.go maxUint64 will be allocated

* fix maxInt64 autoid allocated

* fix batch rowIdx update

* add maxUint64 and maxInt64 limit in allocN

* reconstruct the autoid lazy alloc

* fix format

* remove commnet

* use new kind of logutil.logger(ctx) instead of logutil.BgLogger()

* combine alloc() and allocN together

* remove cache of hasValue

* remove cache of hasValue

* remove cache of hasValue

* remove cache of hasValue

* add test : autoID can find in retryInfo

* add test : autoID can find in retryInfo

* extract retry logic

* extract retry logic

* Update executor/insert_common.go

Co-Authored-By: bb7133 <bb7133@gmail.com>

* Update executor/insert_common.go

Co-Authored-By: bb7133 <bb7133@gmail.com>

* fix comment

* fix comment

* fix comment

* fix comment

* fix comment

* return min and max instead of slice in alloc autoid

* return min and max instead of slice in alloc autoid

* return min and max instead of slice in alloc autoid

* add comment for alloc N
2019-10-10 10:34:44 +08:00
933f4a5c21 ddl: fix incorrect origin default bit value in ColumnInfo (#12168) 2019-09-30 10:40:11 +08:00
41ac571d7b *: remove the LightningMode from TiDB (#12466) 2019-09-29 15:12:01 +08:00
e2b1f7eff8 expression: change the String() method of expression.Column (#12089) 2019-09-16 14:30:22 +08:00
fb683bef2c executor: refactor union scan and dirty table (#11702) 2019-09-12 10:00:45 +08:00
64298f0278 *: refactoring the code of batchChecker (#12108)
batchChecker is difficult to maintain, we should get rid of it.
In this commit, I catch the BatchGet result into the snapshot, in this way we can
achieve the same goal as the batchChecker
2019-09-10 16:36:49 +08:00
756e891ca6 table: Encode/Decode handle faster by reducing escaped variables (#11982) 2019-09-03 08:08:35 +08:00
727d73670d kv, store: simpilify lazy condition pair (#11816) 2019-08-26 15:48:54 +08:00
adb3071c90 *: refine the attribute definition of types.Time and types.Dur… (#11672) 2019-08-14 11:30:40 +08:00
d210889a6c *: trace the execution of the insert operation (#11667) 2019-08-09 14:22:03 +08:00
0dc91069d8 table: avoid redundant encode in insert/update/delete. (#11532) 2019-08-07 10:16:48 +08:00
129c0afdc6 executor, infoschema: fix display of on update CURRENT_TIMESTAMP with decimal (#11480) 2019-08-02 16:50:10 +08:00
9b824457c1 *: improve column size calculation of statistics (#11091) 2019-07-15 13:05:54 +08:00
66f5754c68 *: add trace support for the AllocAutoIncrementValue function (#11158) 2019-07-10 15:07:42 +08:00
ray
862a2beba5 - make generated column ref in insert set available (#11042)
- change generated column calculation later in fillValue, resolve related compatible problems
2019-07-04 17:43:58 +08:00
53a1ce6075 executor, infoschema: fix display of default CURRENT_TIMESTAMP with decimal (#11070) 2019-07-04 16:44:12 +08:00
e1f2b3728d *: make assertion check more reasonable (#10424)
Make sure there are no "ASSERTION fail" logs in session and executor unit test
2019-07-04 16:20:38 +08:00
755875aacb ddl: disallow modifying the generated expression of stored or indexed column (#10932) 2019-07-03 17:28:21 +08:00
ff82b62b97 *: refactor the optional arguments for table.AddRecord and index.Create (#11018) 2019-07-02 15:51:29 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
612936bbd4 *: Support LOCK/UNLOCK TABLES feature (#10343) 2019-06-18 15:38:04 +08:00