Commit Graph

64 Commits

Author SHA1 Message Date
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
d95f96505a *: refine join result generator to return MaxChunkSize chunk (#5715) 2018-01-31 20:00:59 +08:00
a7b0a1f915 server,tidb: move cancel function from session to clientConn (#5346) 2017-12-09 15:27:58 +08:00
c6e8f36835 *: avoid double Close() executor during test (#5285) 2017-12-01 18:13:50 +08:00
69c9e4efe4 *: limit chunk size to MaxChunkSize (#5252) 2017-11-28 21:05:30 +08:00
4f91997b56 executor: improve show full processlist tests (#5222) 2017-11-27 07:10:52 -06:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
cf5a22b5fd *: replace *ast.Row with types.Row (#5124) 2017-11-16 18:36:28 +08:00
7891b638bc util/testkit: fix Sort (#5044) 2017-11-08 01:33:38 -06:00
0977fd07e6 *: begin opentracing from dispatch() and change interface to Execute(ctx, sql) (#5027) 2017-11-07 02:52:15 -06:00
63347051d7 executor,util/testkit: fix data race in test TestOnlyFullGroupBy (#5020) 2017-11-06 00:59:12 -06:00
1c653f7168 *: move tests. (#4524) 2017-09-14 19:49:01 +08:00
94c5420a86 expression: rewrite builtin function: TRUNCATE (#4179) 2017-08-16 12:53:10 +08:00
58dca67d6e *: fix close problem for index look up executor. (#3957) 2017-07-31 21:13:42 +08:00
5943198358 *: Add the two states test (#3804)
* ddl: add different state tests

* ddl: update

* ddl: clean up

* ddl: add a comment

* ddl: make more readable

* ddl: add a comment

* ddl: add the error check

* ddl: address comments
2017-07-26 00:24:56 +08:00
62450b9024 Use etcd to speed up DDL process
Add the mock owner-manager and schema-syncer and enable using etcd to speed up DDL process by default.
2017-06-04 10:00:41 +08:00
b4f20e6f0b util/testkit: refine testkit (#3177) 2017-04-29 23:20:49 +08:00
ebbbf8993b ddl: speed up create table without the need to change lease. (#2332)
DDLs that doesn't modify rows like create/drop/truncate table, create/drop database
do not need to wait 2 lease on ddl worker, we can safely remove those wait to
speed up DDL.

But user may create a table, then insert data on that table on another TiDB server,
So we need to wait in session.

User can set a session variable to skip DDL wait if needed, and there is no risk of
data inconsistency.

This solution remove the need for user to set lease to zero when loading data,
It's much more safe and easy to use.
2016-12-28 22:08:19 +08:00
1f1a60c02a *: improve log (#1944)
Add logging for set system variable.
Add connection ID in log.
Adjust some log level.
Improve readability.
2016-11-04 17:11:10 +08:00