Commit Graph

192 Commits

Author SHA1 Message Date
6b034d4237 *: fix unexpected error when setting collate for database (#16283) 2020-04-17 18:25:33 +08:00
4e44a74b16 executor: fix show default num and sequence (#16450) 2020-04-17 16:43:09 +08:00
b44f5073e6 executor: support 'SHOW CONFIG' syntax to show configs of PD and TiKV instances (#16230) 2020-04-16 17:51:07 +08:00
1c73deca59 ddl: add syntax for setting the cache step of auto id explicitly. (#15409) 2020-04-10 15:57:51 +08:00
e5bd867c50 executor: show create table ignores 'binary' collate table option (#15842) 2020-04-07 19:24:59 +08:00
ff47c8d05f parser: apply feature-ids special comments to auto_random (#15412) 2020-04-02 20:19:39 +08:00
2619f02ddd *: move hint and block hint processor to util directory (#15897) 2020-03-31 16:37:45 +08:00
b8ea8fc42c privilege: fix show grants privilege check (#15524) 2020-03-23 21:06:13 +08:00
82829e1fa5 *: consolidate some settings related to the collation (#15553) 2020-03-23 17:38:31 +08:00
12aabbdc67 ddl: basic support for invisible index (#15366) 2020-03-17 15:31:35 +08:00
4adc2582fd show: fix show create table sequence_name (#15241) 2020-03-10 15:51:32 +08:00
b504d37924 *: refine the table.Table interface (#15227)
remove unnecessary methods.
"The bigger the interface, the weaker the abstraction -- Rob Pike"
2020-03-10 13:40:56 +08:00
8680c8a76b tables: add sequence binlog support (#14954) 2020-02-28 18:46:42 +08:00
b98c88c948 infoschema/executor: support field expression in show index and related infoschema (#14400) 2020-02-20 19:04:48 +08:00
6d50a47a8b executor: add quote for partition name(close #14477) (#14793) 2020-02-16 19:53:19 +08:00
4755a9b9ef util: revert util/mathutil (#14744) 2020-02-13 11:33:04 +08:00
4cfe17854e executor: support show create sequence (#14674) 2020-02-10 18:47:04 +08:00
9e97091de4 executor: add privilege check for show bindings (#14443) 2020-02-03 15:16:54 +08:00
f036eecc9d ddl: support create/drop expression index (#14117) 2020-01-07 10:29:39 +08:00
66b8add23d executor: support show extended columns statement (#14262) 2019-12-28 21:49:09 +08:00
8cbacf0d7c wasm: fix compile error for wasm (#14160)
Signed-off-by: 5kbpers <tangminghua@pingcap.com>
2019-12-23 15:17:46 +08:00
fce9870208 ddl,executor: add auto_random column option (#13127) 2019-12-23 14:51:51 +08:00
cd07c4550d *: support certificate based authentication (#13955) 2019-12-23 11:37:29 +08:00
42adca989e tables: basic support for hidden column (#13908) 2019-12-17 21:48:46 +08:00
0a22034420 executor: add SHOW BUILTINS command (#12941) 2019-12-06 14:13:00 +08:00
0730eeca03 *: fix snapshot problem in show table status (#13797) 2019-12-05 13:26:26 +08:00
13400ee89a table, executor: extract two functions for ShowCreateTable/DB (#13907) 2019-12-05 10:47:52 +08:00
db535c1049 kv: refactor code to fix type SplittableStore name typo (#13829) 2019-12-02 09:08:51 +08:00
4b830aa7f6 *: Remove unused code (#13674) 2019-11-22 11:37:07 +08:00
df1baca19f *: support adding/dropping the primary key by a configuration (#13229) 2019-11-15 01:10:51 +08:00
36f0f37b40 expression, planner: remove some fields from `expression.Colum… (#12573) 2019-10-29 15:48:26 +08:00
bb2e349fea bindinfo: support multiply bindings for a sql (#12851) 2019-10-29 14:40:23 +08:00
9c9f79a95f executor: Hide offline pumps/drainers (#12862) 2019-10-28 19:16:59 +08:00
854e68dc69 executor: display column collate in show create table (#12327) 2019-09-27 15:11:01 +08:00
3de23f0f7c planner/core: support query block hint (#11861) 2019-08-29 19:14:38 +09:00
ba4eb8fba5 *: add region read/write bytes info and approximate size/keys in show table regions result. (#11847) 2019-08-29 11:33:44 +08:00
073ab9b6a3 *: refactor RestrictedSQLExecutor (#11904) 2019-08-28 19:17:19 +08:00
6d51ad33fd *: Optimize struct memory usage by adjust field order (#11629) 2019-08-13 17:20:53 +08:00
129c0afdc6 executor, infoschema: fix display of on update CURRENT_TIMESTAMP with decimal (#11480) 2019-08-02 16:50:10 +08:00
abbca5375e *: add trace support for subquery (#11182)
Test pass, auto merge by Bot
2019-07-24 19:03:47 +08:00
04cfda8699 *: add show table regions syntax (#10612) 2019-07-10 11:54:52 +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
53a1ce6075 executor, infoschema: fix display of default CURRENT_TIMESTAMP with decimal (#11070) 2019-07-04 16:44:12 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
75b9470a74 *: add a column describing memory usage for table information_schema.processlist (#10837)
*: add a column describing memory usage for table information_schema.processlist

Closes #10199
2019-06-20 11:48:49 +08:00
f6be085bc6 executor: tiny refactor the Executor interface (#10846)
Introduce a base() method to get the baseExecutor, so we don't need to add
method from baseExecutor to the Executor interface any more

Before:
```
type Executor interface {
	Open(context.Context) error
	Next(ctx context.Context, req *chunk.RecordBatch) error
	Close() error
	Schema() *expression.Schema

	retTypes() []*types.FieldType
	newFirstChunk() *chunk.Chunk
}
```

After:
```
type Executor interface {
        base() *baseExecutor
	Open(context.Context) error
	Next(ctx context.Context, req *chunk.RecordBatch) error
	Close() error
	Schema() *expression.Schema
}
```
2019-06-19 15:55:28 +08:00
8bc55537a1 executor: fix show create table for partitioned table (#10682) 2019-06-04 11:10:18 +08:00
1690912375 privilege,executor: update DBIsVisible() function for RBAC (#10261) 2019-05-08 15:23:46 +08:00
168776dcfa * : support show session binding (#10285) 2019-04-28 13:20:13 +08:00