Commit Graph

2127 Commits

Author SHA1 Message Date
c00d8a95cf executor, privilege: fix some two bug of RBAC (#11273) 2019-07-22 13:08:03 +08:00
4b928a52c0 executor: update test since DELETE FROM ... AS ... syntax is now supported (#11184) 2019-07-19 17:58:58 +08:00
bedd1b07b0 plugin: add "exec start-time" to GeneralEvent (#11293) 2019-07-18 19:21:01 +08:00
b6a634638f executor: speedup unit test (#10930) 2019-07-18 19:16:22 +08:00
fcc15b1256 types: fix delete error when convert string to float or int (#10861) 2019-07-16 19:50:04 +08:00
eae30ebbcb *: reduce tikvrpc resp struct size (#11056) 2019-07-16 13:21:00 +08:00
368119b8df executor: compute ADMIN CHECKSUM for partitioned tables correc… (#11089) 2019-07-16 07:39:17 +08:00
d420a1f212 *: reduce tikvrpc request size (#11055) 2019-07-15 16:11:14 +08:00
d381d84d1b executor,sessionctx: refine output format for tidb-specific variables of boolean type (#11239) 2019-07-15 15:47:17 +08:00
9b824457c1 *: improve column size calculation of statistics (#11091) 2019-07-15 13:05:54 +08:00
c8ed781d51 executor: push-down LoadDataStmt in distsql (#11067)
moving function `statementContextToFlags` to `StatementContext.PushDownFlags()`

Co-authored-by: Lonng <heng@lonng.org>
Co-authored-by: Foreyes <foreyes_1002@163.com>
2019-07-14 17:58:49 +08:00
bdec3414e7 executor: fix the behavior when index join meet prefix index (#11081) 2019-07-12 17:48:35 +08:00
f496b775fd planner: unsigned pk cannot be pushed as index column (#11094) 2019-07-12 16:25:01 +08:00
e0fc847c8b executor: handle missing timestamp value for load data (#11093) 2019-07-12 14:56:55 +08:00
0ba4d0b41b executor: fix bug of point get when meet null values (#11219) 2019-07-12 14:11:14 +08:00
84432823b3 refactor the logic of load data batch insert, make batchCheckGet happen once per transaction (#11132) 2019-07-12 13:36:58 +08:00
5c436bb1d6 planner: support subquery in SHOW statement (#10942) 2019-07-11 23:56:51 +08:00
4a1374d93a planner: fix bug when pruning columns for TableDual (#11054) 2019-07-11 20:26:03 +08:00
9385c6eca0 executor: fix a bug of 'insert on duplicate update' statement on partitioned table (#11204)
In this statement: insert into t1 set a=1,b=1 on duplicate key update a=1,b=1
Batch checker find a=1,b=1 is duplicated, then in the "on duplicate update" step,
it uses the non-partitioned table to get the old row, which is a bug.
getOldRow returns this error: (1105, u'can not be duplicated row, due to old row not found. handle 1 not found')
2019-07-11 15:24:27 +08:00
53f8a2c366 executor, metrics: add metrics for fast analyze. (#11079) 2019-07-11 14:36:28 +08:00
47f449a07d executor: explain analyze panic when processing explain analyze insert ... select ... (#11162) 2019-07-11 11:18:00 +08:00
b43668da82 planner: fix union scan on partition table bug (#11187) 2019-07-11 11:00:44 +08:00
66f5754c68 *: add trace support for the AllocAutoIncrementValue function (#11158) 2019-07-10 15:07:42 +08:00
c8794803b5 *: add admin cleanup table lock syntax support (#10423) 2019-07-10 12:54:09 +08:00
04cfda8699 *: add show table regions syntax (#10612) 2019-07-10 11:54:52 +08:00
89baed8e17 ddl: scatter the regions of table when creating them (#10980) 2019-07-10 11:09:14 +08:00
bd4130d1f3 executor: fix privilege check for 'show create user current_user()' (#11142) 2019-07-09 19:45:33 +08:00
8104494b91 plugin: support dynamic enable/disable plugins (#11122) 2019-07-09 13:02:50 +08:00
2ef4c5c35d executor, test: skip TestPBMemoryLeak to reduce unit test time cost (#11073) 2019-07-08 22:47:31 +08:00
a737d26e4f *: add tidb_enable_noop_functions to default disable get_lock()/release_lock() (#10987)
* issue#4100 add new variable to default disable usage of get_lock and release_lock functions
2019-07-08 13:47:36 +08:00
58f5632b90 executor: make TestShowAnalyzeStatus more stable (#11090)
If TestShowAnalyzeStatus run parallelly with others, the results would be affected.
use a new testShowStatsSuite for it.
2019-07-05 10:56:27 +08:00
9eb2379565 executor: fix invalid key error of fast analyze (#11072) 2019-07-04 19:51:34 +08:00
ray
862a2beba5 - make generated column ref in insert set available (#11042)
- change generated column calculation later in fillValue, resolve related compatible problems
2019-07-04 17:43:58 +08:00
53a1ce6075 executor, infoschema: fix display of default CURRENT_TIMESTAMP with decimal (#11070) 2019-07-04 16:44:12 +08:00
e1f2b3728d *: make assertion check more reasonable (#10424)
Make sure there are no "ASSERTION fail" logs in session and executor unit test
2019-07-04 16:20:38 +08:00
ce0312bd43 executor: handle unsigned primary key for fast analyze (#11074) 2019-07-04 16:08:39 +08:00
ea6b865c08 executor: fix a logical error which is introduced in a previous refactor (#11060) 2019-07-04 11:46:03 +08:00
027851fe3b executor: fix two data races in tests (#11062) 2019-07-04 10:41:48 +08:00
ff82b62b97 *: refactor the optional arguments for table.AddRecord and index.Create (#11018) 2019-07-02 15:51:29 +08:00
cb23b524ac *: directly save prepare execute args as datums in binary proto (#10884) 2019-07-02 13:49:06 +08:00
5886bb90d1 executor: let flush privileges do nothing when skip-grant-table is configured (#10986)
When skip-grant-table is enabled, privilege handle is not initialized, calling flush privileges
would meet nil pointer panic
2019-07-02 10:44:30 +08:00
08d821931d executor: fix point get snapshot TS for pessimistic transaction. (#11012) 2019-07-01 19:26:25 +08:00
1916effb04 *: fix oom action cancel bug (#10993) 2019-07-01 13:40:54 +08:00
f29b36ca1d *: fix malformed SQL statements in test (#10992) 2019-07-01 10:37:35 +08:00
b63a8bfedf meta: make auto increment id can be adjust. (#10978) 2019-06-28 22:26:08 +08:00
2e369cd520 planner,executor: relax the restrictions of trace format='row' (#10979) 2019-06-28 16:47:33 +08:00
0d984d8ffc executor: locks key in point get executor for pessimistic transaction (#10972) 2019-06-28 14:06:43 +08:00
0d563f1e2d stats: fix unstable test (#10953) 2019-06-27 13:51:16 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
a57b6e60a6 *: Add support for MAX_EXECUTION_TIME. (#10541) 2019-06-25 01:18:11 +08:00