Commit Graph

308 Commits

Author SHA1 Message Date
b0d6c5b35b *: print an expensive query log when a query is out of memQuota (#10799) 2019-06-18 16:18:48 +08:00
7bf3d69313 *: split index region with lower upper syntax (#10409) 2019-06-06 10:47:24 +08:00
08e4bd988f store/tikv: support single statement rollback for pessimistic transaction (#10654) 2019-06-05 13:40:12 +08:00
c4db7b7655 planner, executor: fix show view privileges for explain (#10585) 2019-05-27 13:22:28 +08:00
373748adf7 *: support pessimistic transaction (experimental feature) (#10297) 2019-05-11 09:48:45 +08:00
7ecb3159a6 *: add split index region syntax (#10203) 2019-05-06 17:41:50 +08:00
0b037aadf6 Fix incorrect "Internal" display in admin show slow output (#10338) 2019-05-05 23:28:42 +08:00
718871646b executor: reduce alloc and lock-hold-time caused by err/warn count (#10223) 2019-04-24 09:51:02 +08:00
5fcc7e2a61 executor: tiny clean up by removing unnecessary string creation (#10213)
* executor: clean up by remove unnecessary string creation
* check if id is nil
2019-04-22 15:32:15 +08:00
d6396daa77 *: lazy eval explain id and tracker label (#10139) 2019-04-22 14:23:33 +08:00
70c37188ac executor: fix bad null error handling for insert statement when disabling the strict SQL mode (#10161) 2019-04-21 15:53:47 +08:00
e9653675dd *: remove errors.Trace in main handle path (#10033) 2019-04-04 14:27:15 +08:00
6125f49baf *: fix the read-only check for the prepare/execute statement (#9723) 2019-04-01 13:27:49 +08:00
f738ba24ad executor: replace logger with zap logger (#9521) 2019-03-14 15:14:38 +08:00
e3983227b4 log: generate digest and log it in slow log (#9662) 2019-03-14 13:45:32 +08:00
52c8267a73 *: tiny refactor, more go idiom (#9660) 2019-03-12 14:12:56 +08:00
3e0f51b474 executor: control Chunk size for Selection&Projection (#9398) 2019-02-26 14:24:30 +08:00
5a283a98dd plan/executor: make semi joins null and empty aware (#9051) 2019-02-25 15:42:38 +08:00
789f7006ac Control the number of rows in chunks returned by LimitExec (#9354) 2019-02-19 18:21:55 +08:00
40fa006cac *: collect coprocessor runtime stats for explain analyze (#9057) 2019-02-19 16:22:00 +08:00
47ea05d017 executor,planner: adjust the result of 'admin show ddl' (#9020) 2019-01-16 18:02:55 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
f20c849857 types: support sql_mode ALLOW_INVALID_DATES (#9027) 2019-01-14 19:34:22 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
68ddb7f0e6 *: fix the lower bound when converting numbers less than 0 to unsigned integers (#8544) 2019-01-10 16:04:07 +08:00
084aa5a030 config: add initChunkSize config item, make chunk start with 32 (#8480) 2019-01-07 11:14:47 +08:00
bd69b15e79 *: add the error check (#8770) 2018-12-24 22:22:00 +08:00
a7907ede7a *: remove fail field from TxnState (#8712)
Originally, `fail` is added to simplify error handling, avoiding large changes on
the Txn() interface API. But it turns out that `fail` becomes the root of many bugs.
So this commit remove the `fail` and make an API refactory.
2018-12-20 16:36:12 +08:00
18b2a7884b admin: only check public index (#8748) 2018-12-19 17:05:07 +08:00
ce622ec6d8 session: move more session vars to stmt context for retrying (#8034) 2018-12-10 16:39:43 +08:00
93acd10f53 *: add context.Context to NewTxn(), tiny refactor (#8530) 2018-12-06 17:45:16 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
6fb260f8a6 *: redesign trace statement with json output (#8357) 2018-11-21 13:50:18 +08:00
3742a0d602 *: Txn() function signature refactor and remove ActivePendingTxn() (#8327)
* change Txn() function signature to Txn(active bool)
* ActivePendingTxn() is not used any more because Txn() does the work
* change executor builder getStartTS() uint64 to getStartTS() (uint64, error)
2018-11-16 11:10:39 +08:00
0c3e9c1652 session,executor: run statement without transaction (#8260)
`set @@autocommit = 0`
`select 1` // This statement should not make the session enter a transaction,
because it never need Txn().
Make txn lazy initialize
2018-11-14 20:10:58 +08:00
f3a9745e2c executor: support for "admin show next_row_id" (#8242) 2018-11-09 22:08:42 +08:00
5374ff8935 expression,planner: support non-deterministic functions (e.g., now) in the plan cache (#8105) 2018-11-01 23:53:32 +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
1434fa9b89 admin: refine admin check decoder (#7862) 2018-10-23 17:55:58 +08:00
458c0d1c27 executor: refine explain analyze (#7888) 2018-10-16 20:02:43 +08:00
d21f294393 *: make explain support explain anaylze (#7827) 2018-10-12 20:01:19 +08:00
ee0d4d6c64 executor: print arguments in execute statement in log files (#7684) 2018-10-09 15:24:25 +08:00
05b37de16e *: use chunk grow for simple executor (#7540) 2018-09-27 09:07:51 +08:00
081920da93 planner,executor: support admin show slow command (#7785) 2018-09-26 19:28:53 +08:00
e79bd946ed *: change package name from plan to planner (#7760) 2018-09-25 11:16:39 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
bc97e2d616 plan, util/admin: fix admin check table error when a column of index is virtual generated (#6817) 2018-08-28 12:42:55 +08:00
5404e2eaae ddl: add admin check before drop table using building flag. (#7343) 2018-08-14 21:44:57 +08:00
d1f2587903 *: admin check table return tidb specific error code. (#7363) 2018-08-14 13:54:16 +08:00