48eb295925
*: change some tests using failpoint to serialSuite ( #19753 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2020-09-03 21:12:58 +08:00
bc63f4660b
ddl: reject adding auto_random column ( #19618 )
2020-09-02 10:24:56 +08:00
0d7843d781
ddl: fix max allocation count when create auto_random tables ( #18417 )
2020-07-13 17:19:07 +08:00
8b856cc82d
autoid: only initialize rowid allocator if necessary ( #18326 )
2020-07-13 17:01:56 +08:00
6e7994a850
ddl: limit the range of auto_random_base ( #18188 )
...
* ddl: limit the range of auto_random_base
* sort import
* make fmt
* Apply suggestions from code review
Co-authored-by: djshow832 <zhangming@pingcap.com >
Co-authored-by: djshow832 <zhangming@pingcap.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-06-28 19:19:05 +08:00
f12cdc4201
config: remove allow-auto-random config option ( #16596 )
2020-06-10 14:09:12 +08:00
04548980f8
ddl, meta: allow increasing auto_random bits ( #17423 )
2020-06-10 08:35:13 +08:00
a4eb75a6f0
ddl: reject alter auto_random_base on a non auto_random table ( #17714 )
...
Co-authored-by: Arenatlx <ailinsilence4@gmail.com >
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com >
2020-06-06 21:56:43 +08:00
9162cfa2f3
meta: fix the allocator batch size compute logic ( #17271 )
2020-06-01 10:47:17 +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
ac30f5322e
mockstore: introducing embedded unistore ( #17156 )
2020-05-18 17:28:44 +08:00
0de6925e12
ddl: Add some limit for auto_random ( #17119 )
2020-05-15 21:28:44 +08:00
ce923ac85d
executor: only reserve the sign bit when auto_random column is signed ( #15566 )
2020-05-11 18:19:36 +08:00
46e37a1700
executor: generalize SHOW TABLE t NEXT_ROW_ID for auto_random and sequences ( #16821 )
2020-04-29 20:00:26 +08:00
62e4d588a8
Makefile: add unconvert to inspect unnecessary type convert ( #16549 )
2020-04-22 23:01:59 +08:00
1c73deca59
ddl: add syntax for setting the cache step of auto id explicitly. ( #15409 )
2020-04-10 15:57:51 +08:00
b8b49f5937
*: fix setval in another session return num when it is already satisfied in meta ( #15848 )
2020-04-03 17:11:20 +08:00
45d83d1adb
infoschema: remove the inspection_schema ( #15296 )
...
Signed-off-by: Lonng <heng@lonng.org >
2020-03-12 11:51:18 +08:00
9f0736ee8b
errno: move the error code from the parser/mysql to tidb/errno ( #15277 )
2020-03-11 15:40:21 +08:00
e4762f28e9
ddl: show max allocate times when an auto_random table is created ( #15262 )
2020-03-10 18:04:32 +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
dcb8b3d5dd
executor: fix last_insert_id in auto_random mode ( #15145 )
2020-03-05 15:59:18 +08:00
0bbf1d954c
*: implement the sequence allocator logic. ( #14829 )
2020-02-26 15:45:38 +08:00
27b280dd05
*: specify time range via TIME_RANGE hint for metrics/inspection tables ( #14874 )
...
Signed-off-by: Lonng <heng@lonng.org >
2020-02-21 13:01:52 +08:00
4755a9b9ef
util: revert util/mathutil ( #14744 )
2020-02-13 11:33:04 +08:00
465af00b46
*: use new registrable terror ( #14606 )
2020-02-06 16:40:26 +08:00
870d4b19c8
*: support auto_increment_increment & auto_increment_offset. ( #14301 )
2020-01-08 10:18:39 +08:00
e8c198d235
*: implement the INSPECTION_SCHEMA to provide snapshot of inspection tables ( #14147 )
...
Signed-off-by: Lonng <heng@lonng.org >
2019-12-24 11:24:14 +08:00
8cbacf0d7c
wasm: fix compile error for wasm ( #14160 )
...
Signed-off-by: 5kbpers <tangminghua@pingcap.com >
2019-12-23 15:17:46 +08:00
fce9870208
ddl,executor: add auto_random column option ( #13127 )
2019-12-23 14:51:51 +08:00
933715f4a2
infoschema: add metric database/table to query cluster metric via SQL. ( #13757 )
2019-12-20 16:13:28 +08:00
5da10ffecc
*: refine some error code ( #14002 )
2019-12-12 11:09:58 +08:00
5b6422df58
*: support read remote TiDB memory table of cluster ( #13065 )
2019-12-04 13:05:36 +08:00
826e1d712b
*: cleanup error code ( #13874 )
2019-12-03 20:29:09 +08:00
9d769e4a05
meta: make auto id minimum step larger ( #12873 )
2019-10-22 18:31:29 +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
c2901fea45
meta/autoid : fix the issue that MaxUint64 and MaxInt64 autoID is incorrectly allocated ( #12119 )
2019-09-11 08:07:39 -05:00
435a912d29
ddl: disallow dropping index on auto_increment column ( #11360 )
2019-07-23 15:13:24 +08:00
b63a8bfedf
meta: make auto increment id can be adjust. ( #10978 )
2019-06-28 22:26:08 +08:00
c8d1ff7ca6
*: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' ( #10866 )
2019-06-21 19:13:31 +08:00
dd08a0a7b0
meta/autoid: remove memoryAllocator ( #10061 )
2019-04-09 11:06:05 +08:00
e9653675dd
*: remove errors.Trace in main handle path ( #10033 )
2019-04-04 14:27:15 +08:00
b78490e403
*: use the unified log format for the remaining packages ( #9743 )
2019-03-22 16:34:47 +08:00
f522de2e8f
ddl: support "or replace" option when create view ( #8856 )
2019-01-16 19:54:22 +08:00
44f2c2c381
Makefile: make 'make check' faster ( #8755 )
...
* remove vet check
* make lint check on $(FILES)
2018-12-21 11:12:18 +08:00
7056bb0d32
executor, session: refine insert unsigned bigint autoIncreID ( #8181 )
2018-12-18 23:01:10 +08:00
8672716883
remove an unused variable ( #8229 )
2018-11-08 13:58:56 +08:00
32b1dbd8d5
*: rename "github.com/pkg/errors" to "github.com/pingcap/errors" ( #8136 )
...
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
cb03f2bec1
move from juju/errors to pkg/errors ( #7151 )
2018-09-12 15:42:20 +08:00