Commit Graph

109 Commits

Author SHA1 Message Date
449587a085 *: using standard error to replace terror (#19425) 2020-09-08 20:15:51 +08:00
48eb295925 *: change some tests using failpoint to serialSuite (#19753)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-09-03 21:12:58 +08:00
eff7837795 executor: support 'recover index' in clustered index tables (#19284)
* support 'recover index' in clustered index table

* ddl: add truncate to buildCommonHandleFromChunkRow

* executor: truncate the updated handle

* executor: set core.HandleCols in the initialization of RecoverIndexExec

* refine code

* remove unused code

* fix integration test

* fix integration test

* address comment

* early return when recovering clustered pk

* remove panic

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 11:51:52 +08:00
eb40424de4 ddl: support add global index operation on partition table (#18402) 2020-08-21 14:16:56 +08:00
13bd62e183 ddl, executor: fix clustered prefix primary key truncation (#19320)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-20 14:45:22 +08:00
baedc336af tablecodec: fix check cluster index table on new collation (#19181)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-13 21:14:44 +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
bd06d239a2 tablecodec: support decode common handle bytes to strings (#18953)
* tablecodec: support decode common handle bytes to strings

* address comments

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-04 13:35:48 +08:00
0df3b74f55 expression: make tidb_decode_key function try to decode the index value (#18245) 2020-07-03 18:13:05 +08:00
99a83a1c6d planner, unistore: support index scan for common handle on unique index (#18302) 2020-07-02 21:02:57 +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
0321395ea9 types/question: fix the variable reallocation in the function EncodeIndexSeekKey (#17831) (#17833) 2020-06-15 15:59:48 +08:00
7c3e9d2427 *: support analyze on cluster index (#17895) 2020-06-15 10:51:33 +08:00
30cb0312d1 tablecode: improve the coverage of key path in tablecodec (#16986) 2020-06-10 14:42:15 +08:00
73c4673f30 *: support update/delete/insert ignore/duplicate update in single cluster index table (#17721) 2020-06-08 20:55:31 +08:00
1758f86de6 util: support clustered index for table scan (#17616) 2020-06-03 20:17:13 +08:00
552e7709de *: refactor decoder to avoid useless fieldType convert (#17632) 2020-06-03 18:13:56 +08:00
a1763c1b6e executor: fix memory corrupt in COUNT/JSON_OBJECTAGG/GROUP_CONCAT (#17106) 2020-05-13 16:58:20 +08:00
c258afafe2 *: index codec for common handle (#16998) 2020-05-09 16:18:05 +08:00
af376db3dc *: refactor Handle in tablecodec and rowcodec (#16705)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-04-23 18:55:59 +08:00
62e4d588a8 Makefile: add unconvert to inspect unnecessary type convert (#16549) 2020-04-22 23:01:59 +08:00
c561d5aa99 *: remove useless conversions and omit some types (#16262) 2020-04-10 00:23:06 +08:00
9f0736ee8b errno: move the error code from the parser/mysql to tidb/errno (#15277) 2020-03-11 15:40:21 +08:00
0ddfe0716f *: fix datum's collation behavior to build correct logical ranges (#14963) 2020-03-05 22:34:46 +08:00
41142266b2 *: use SetString() for string instead of SetBytes() (#14989) 2020-03-02 15:48:10 +08:00
736a2f2b59 tablecodec: move meta constant to common place (#15048) 2020-03-02 10:50:59 +08:00
332cef97f5 *: support index encode/decode for new collation (#14876) 2020-02-27 11:33:33 +08:00
a7bdb82402 *: Reduce memory operations by simply passing size hint to make (#14922) 2020-02-25 15:44:36 +08:00
465af00b46 *: use new registrable terror (#14606) 2020-02-06 16:40:26 +08:00
0bab73adf5 *: use new row-format in tidb (#12634) 2020-01-02 22:34:39 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +08:00
cbf7415873 *: add errcode for structure, tablecodec, admin files (#14054) 2019-12-16 12:07:02 +08:00
d666ed4137 *: fix the wrong check for key-need-lock of pessimistic transaction (#14057) 2019-12-15 18:04:37 +08:00
4b830aa7f6 *: Remove unused code (#13674) 2019-11-22 11:37:07 +08:00
6fd74f3e4c planner: support cost model for tiflash table scan (#12868) 2019-10-29 16:05:51 +08:00
6878b97de7 tikv, tablecodec: log decoded key for TxnLockNotFound/WriteConflict error (#12869) 2019-10-29 14:46:21 +08:00
10519498a9 expression: add builtin function tidb_decode_key() (#12193) 2019-09-24 10:02:29 +08:00
fb683bef2c executor: refactor union scan and dirty table (#11702) 2019-09-12 10:00:45 +08:00
adb3071c90 *: refine the attribute definition of types.Time and types.Dur… (#11672) 2019-08-14 11:30:40 +08:00
da8e7d267c executor: refactor union_scan executor by using txn_mem_buffer_reader (#10673) 2019-07-30 17:40:33 +08:00
18724b950b codec: improve buffer reuse (#10801) 2019-07-23 21:22:24 +08:00
9b824457c1 *: improve column size calculation of statistics (#11091) 2019-07-15 13:05:54 +08:00
67583f9dc1 tablecodec: improve package unit test code coverage to 85% (#10356) 2019-05-08 15:01:51 +08:00
27a56180bd *: replace gofail with the new failpoint implementation (#10184) 2019-04-22 13:30:14 +08:00
1c6315140a Speed up decoding column id (#10188)
* codec: speed up decoding column id by removing a redundant decoding of varint

* add a comment for skipped flag
2019-04-18 17:01:15 +08:00
e31e8f1560 *: reduce runtime.growslice by preallocation (#9946) 2019-03-31 10:31:06 +08:00
9c087d13ee *: replace github.com/etcd-io/gofail with the forked one (#8693)
With the adoption of Go module, GOPATH is not need any more
But github.com/etcd-io/gofail doesn't support packages outside the GOPATH
To overcome the drawback, this commit replace it with our forked one
2018-12-19 11:30:48 +08:00
d3b92e0288 ddl: fix panic when add index of generated column. (#8620) 2018-12-11 18:08:18 +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