Commit Graph

2838 Commits

Author SHA1 Message Date
fcfedb77fc executor: bootstrap SQLs are not treated as internal queries in statement summary (#17024) 2020-05-09 16:01:35 +08:00
8ea2ed03e7 session: Move OptimizerUseInvisibleIndexes from SmtmCtx to SessionVars (#17040) 2020-05-09 08:41:05 +08:00
664db4e33c ddl: forbid truncating sequence object (#16981) 2020-05-08 14:54:42 +08:00
3224393c7f executor: fix wrong plan type for dataReaderBuilder error (#17028) 2020-05-08 14:34:45 +08:00
26e946d25e plannercore: ignore invisible indexes in optimizer (#15421) 2020-05-07 11:00:40 +08:00
20ebd8160a planner: add explain info for ClusterTableExtractor (#16584) 2020-05-06 21:12:09 +08:00
7ebcc20398 executor: support GROUP_CONCAT(ORDER BY) (#16591) 2020-05-06 18:41:22 +08:00
1c3435b4a6 executor: remove default search time range of cluster_log when query without time range. (#16938) 2020-05-06 13:48:29 +08:00
5d74cf582d executor: fix unique index point get read with delete first (#16965) 2020-05-04 22:11:56 +08:00
43764a59b7 RFC + Support of BACKUP and RESTORE statements (#15274) 2020-04-30 19:35:56 +08:00
c0814f0b0e return err when INSERT/UPDATE/ANALYZE/DELETE a sequence (#16936) 2020-04-30 16:52:38 +08:00
c3b6a52beb executor: disallow subquery in insert values clause reference upper scope (#16872) 2020-04-30 14:31:56 +08:00
30f6f32708 tests: abstract Cluster interface for introducing new mock... (#16940) 2020-04-30 10:46:55 +08:00
46e37a1700 executor: generalize SHOW TABLE t NEXT_ROW_ID for auto_random and sequences (#16821) 2020-04-29 20:00:26 +08:00
51dabaabef *: refactor Handle in executor package (#16871) 2020-04-28 21:27:19 +08:00
092dbc0326 executor: remove useless union scan codes (#16683) 2020-04-28 16:46:05 +08:00
3a07cf7fcc executer: add Cop_time in slow log (#16873) 2020-04-28 15:08:09 +08:00
26e208b9df executor, types: copy enum/set instead of refer the underlying data (#16858) 2020-04-28 13:00:40 +08:00
b32e834a8d server: let select for update could be recorded for slow log and statements (#16743) 2020-04-28 12:11:56 +08:00
38f4d869d8 fix auto random base comment in show.go (#16859)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-04-27 17:04:36 +08:00
468b8c6f7b executor, privilege: introduce a new privilege for the set config statement (#16847) 2020-04-27 14:17:38 +08:00
6814f8c94b *: refactor Handle in table package (#16807) 2020-04-27 10:04:50 +08:00
a731265f65 executor: do not quote numbers in JSON data when using set config #16829 (#16835) 2020-04-26 23:17:20 +08:00
d9c3617a1c fix test fail in TestAutoRandomTableOption (#16836) 2020-04-26 17:01:39 +08:00
82bb3ced74 makefile: let make fmt ensure std imports before non-std (#16816) 2020-04-26 10:37:24 +08:00
7b25ce0d94 *: support auto_random table option (#16750) 2020-04-24 23:14:51 +08:00
5e4a694897 executor: fix slow_query bug when query with time equal condit… (#16768) 2020-04-24 19:13:13 +08:00
4e6e933f6a statistics: fix wrong hash which misses hit by query topn (#16606) 2020-04-24 17:04:12 +08:00
90bfe841ae server: add drop/truncate table tiflash replica info in /tiflash/replica http api (#15699) 2020-04-24 16:00:48 +08:00
e607157efe util, executor: deep clone shallowRow in baseJoiner.Clone (#16644) 2020-04-24 15:10:06 +08:00
aab9917b91 ddl: split partition region when add a new partition (#16537) 2020-04-24 13:17:50 +08:00
35a801bc9b txn: fix read val from lock cache from RC (#16771) 2020-04-24 10:24:49 +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
e3669cb1da executor: support 'SET CONFIG' syntax to change configs of TiKV/PD instances (#16480) 2020-04-23 17:09:19 +08:00
d25d0a5d6f executor, config: update the way to show array config items when using show config (#16712) 2020-04-23 16:26:15 +08:00
1bf6fd113a executor: add region sync state (#16724) 2020-04-23 16:14:47 +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
c18b6dd2e2 executor: remove useless log (#16385) (#16616) 2020-04-22 23:55:10 +08:00
62e4d588a8 Makefile: add unconvert to inspect unnecessary type convert (#16549) 2020-04-22 23:01:59 +08:00
79211fe63d plan: make query on partition table not cacheable (#16375) 2020-04-22 21:58:20 +08:00
b56733dde1 executor: fix DATA RACE caused by change the global logger whe… (#16722) 2020-04-22 21:47:51 +08:00
d49573e050 *: refine some logs with incorrect collation (#16275) 2020-04-22 15:23:48 +08:00
a9091029b8 *: fix lost index bug of insert on duplicate key update (#16672)
Fix issue #16669

When check the untouched index, we should also check the memory-buffer in the session too.
2020-04-22 11:11:14 +08:00
8c455e86c1 ddl: fix sequence object check error when alter table (#16625) 2020-04-21 10:14:09 +08:00
138f225d62 executor: only return the first row of a subquery (#16399) 2020-04-21 09:45:50 +08:00
5bf9ad7b81 executor: fix load data deal with escape character. (#16340) 2020-04-20 20:33:28 +08:00
8b6d53a4a9 expression: split isTrue and isFalse expression sig (#16542) 2020-04-20 20:11:47 +08:00
2a69052cf1 test: fix unit test and make test running serially. (#16525) 2020-04-20 17:44:26 +08:00
5bdc0eaf50 executor: fix slow_query bug when query with time equal condition (#16445) 2020-04-20 10:52:03 +08:00
a0c7407846 executor: set length and frac when we change zero to decimal t… (#16518) 2020-04-18 00:01:37 +08:00