Commit Graph

82 Commits

Author SHA1 Message Date
dd7f71fb43 util/testkit/testkit.go: fix typo (#30638) 2021-12-14 18:52:35 +08:00
b74c13a898 *: run go fmt in go1.17 (#28784) 2021-11-05 12:33:03 +08:00
4a4f71114e statistics: migrate test-infra to testify for integration_test.go (#28693) 2021-10-13 10:55:26 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
af09803e07 test: remove misuse of errors.ErrorStack in tests (#28661) 2021-10-09 14:17:24 +08:00
680de922ed *: fix license header (#28085) 2021-09-17 22:26:41 +08:00
04684e6e58 ddl: support recover/flashback table for label rules (#27073) 2021-09-07 15:40:58 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
f9652b26f2 executor: migrate TestBatchInsertWithOnDuplicate to testify (#26712) 2021-08-05 02:45:08 +08:00
4eeff54d85 statistics: fix the fomula for checking outdated stats (#26728) 2021-07-29 22:34:17 +08:00
883c7fb87c planner: add partitioning pruning tests for range partitioning (#24554) 2021-05-19 10:57:40 +08:00
c20d496dd7 executor: add test cases about partition table with expression (#24628) 2021-05-17 14:23:39 +08:00
61131c6f1d executor: add partition pruning tests for adding and dropping partition operations (#24573) 2021-05-13 00:47:39 +08:00
263a47e85c executor: add a test for dynamic partition prune mode with equal expression (#24520) 2021-05-11 15:51:39 +08:00
3641cd4fe0 executor: fix split table with large integers (#21277) 2021-03-15 16:18:56 +08:00
6bb16e55ff statistics: add static partition prune mode checks (#23016) 2021-03-02 19:30:30 +08:00
99d0b22f04 session, util: update session to use new APIs (#22652) 2021-02-19 13:10:30 +08:00
3dd842f50a statistics: add bucket ndv for index histogram (#20580)
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-01-13 18:24:21 +08:00
8bcbdf0aba planner: fix update statement not blocked by primary (#20842) 2020-11-09 17:06:48 +08:00
170e2fec92 *: collect multiple partitions and store in tidb (part II) (#19899) 2020-09-29 21:25:56 +08:00
449587a085 *: using standard error to replace terror (#19425) 2020-09-08 20:15:51 +08:00
05b2e2bdcc *: refactor Execute() and clean up code (#17678)
- implement Execute using ExecuteStmt
- Execute is only for internal usage and accept only one statement
- clean up the old execute function
2020-06-09 13:58:39 +08:00
72a789a247 planner, infoschema : add columns about plan cache in 'performance_schema.events_statements_summary_by_digest' (#16476) 2020-05-26 13:10:02 +08:00
e521ea9d89 *: fix the problem that PointGet returns wrong results in the case of overflow (#14776) 2020-04-23 15:18:01 +08:00
21ee980e11 *: Refine Explain's format. (#15507) 2020-03-23 17:57:49 +08:00
4dfbb14c51 *: tidy code && prealloc some slice for performance (#13468) 2020-01-02 17:26:10 +08:00
86ae838d5a planner/core: disallow using hidden column in insert statement (#14150) 2019-12-26 16:08:55 +08:00
b743208fd7 bindinfo, planner: fix sql bind when sql has symbol list (#13889) 2019-12-07 14:26:08 +08:00
20823fbe18 *: add a system variable to control the usage of baselines (#12624) 2019-10-14 21:09:03 +08:00
702854f029 planner/core: add bit column test about display width range (#11985) 2019-09-06 16:08:19 +08:00
cc07b11082 executor: set the correct stmtCtx for explain statement (#11186) 2019-08-27 14:09:35 +08:00
1595c0101e *: replace context.WithValue string key to typed struct{} key (#11675) 2019-08-09 14:11:48 +08:00
tp
ad404bb645 *: avoid tidb-server -h output test flags (#11209) 2019-07-12 15:19:57 +08:00
cb23b524ac *: directly save prepare execute args as datums in binary proto (#10884) 2019-07-02 13:49:06 +08:00
91ab534be3 server: add http api to get some info of sub-optimal query (#10717) 2019-06-24 16:59:52 +08:00
08e4bd988f store/tikv: support single statement rollback for pessimistic transaction (#10654) 2019-06-05 13:40:12 +08:00
ba7134d4e9 executor: correct range calculation for CHAR column (#10124) 2019-05-14 16:15:31 +08:00
98dbbffceb executor: fix IsPointGet judgment condition (#10278)
index lookup should not the max ts optimization
2019-04-28 17:47:02 +08:00
546702328d util/testkit: add concurrent test toolkit (#9645) 2019-03-14 19:24:40 +08:00
aabd330d1e *: support "show create user" (#9240) 2019-02-21 13:58:19 +08:00
98b96cc769 executor: speedup unit tests by spliting them into separate suites (#8618) 2018-12-24 21:37:12 +08:00
7528a059cf executor/server/session: add extra info message sent to mysql client (#8285) 2018-12-19 15:32:49 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +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
edaec7bdaf *: move Statement and RecordSet from ast to sqlexec package (#7970) 2018-10-21 13:21:26 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
f18176f806 util/testkit: make the msg of failed check more readable (#7386) 2018-08-15 09:24:58 +08:00
f287451eed tidb: move tidb/*.go to session directory (#6062)
This change makes our top level directory clean.
2018-03-20 09:06:11 -05:00
e1121814d2 *: don't import golang.org/x/net/context as goctx alias (#5895)
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00
274a344ad1 server: fix sub query error in prepare statement (#5761) 2018-02-06 06:49:38 -06:00