Commit Graph

585 Commits

Author SHA1 Message Date
3efbbbfc13 plan: combine agg_prune and agg_pushdown. (#2820) 2017-03-14 14:38:28 +08:00
51fce6fd51 plan: fix bug about column prunning. (#2796) 2017-03-09 15:40:16 +08:00
d792ba7b05 executor: add expensive query metrics (#2795) 2017-03-08 20:35:17 +08:00
517e32b25c store,executor: tiny changes, consider ctx (#2748) 2017-03-08 15:22:29 +08:00
a623e670e6 *: implement "kill tidb xxx" statement (#2768) 2017-03-08 13:32:22 +08:00
fb9cd85e2e *: Speed up the add columns phase (#2769) 2017-03-07 20:11:29 +08:00
09a8c1bd7a *: tiny refact move SetProcessInfo (#2790) 2017-03-07 14:48:38 +08:00
ef1b2c9ae6 executor: grant statement would create user if not exist (#2756) 2017-03-06 15:04:30 +08:00
e6ad664f8c executor: range task channel in XSelectIndexExec.Close. (#2775) 2017-03-06 13:35:05 +08:00
f5d098e7e9 plan: remove useless aggregation when pushing down aggregation (#2702) 2017-03-01 14:59:37 +08:00
87d39986fe *: show processlist (#2744) 2017-03-01 14:39:13 +08:00
92a0b89771 parser: grant select on test.* to 'test' (#2757) 2017-03-01 12:50:40 +08:00
661637080d *: Add a empty table for triggers (#2749) 2017-02-28 09:33:18 +08:00
b2f8a6fceb parser: parse kill statement (#2734) 2017-02-27 13:58:02 +08:00
07952cb108 *: basic support show warnings. (#2724) 2017-02-24 16:29:39 +08:00
3ad2608c9a plan: decorrelate for aggregation. (#2682)
* plan: decorrelate for aggregation.

* add test

* address comment.
2017-02-24 09:45:57 +08:00
0282310e8b executor,localstore: use default value if column not found in row. (#2703) 2017-02-23 15:18:57 +08:00
3474c0e7b1 executor: Fix show create table with multiple fk (#2711) 2017-02-23 00:07:03 +08:00
61868f44dc *: Support the statement of "create table ... like" (#2707) 2017-02-22 23:57:04 +08:00
f7c95f3f42 executor: grant statement allow pattern string in db and table name (#2688) 2017-02-22 22:59:18 +08:00
94418b289f *: add a ctx parameter to distsql.Select, kv.Client and tikv.Client (#2699) 2017-02-22 16:02:22 +08:00
a2f2e3f40a tidb,store/tikv: use special session to execute ExecRestrictedSQL (#2687) 2017-02-22 15:08:17 +08:00
95f6b237ab executor: fix statement count metrics for prepared statement. (#2704) 2017-02-22 13:22:45 +08:00
4f95252ab0 *: add Cancel method for tidb.Session, Canceled for context.Context (#2636) 2017-02-22 12:56:20 +08:00
16fa15d890 *: support revoke statement (#2661) 2017-02-21 22:05:50 +08:00
624e7edebe executor: fix bug about topn pushing down. (#2693) 2017-02-21 14:54:56 +08:00
6859d121b9 txn:improvement for point get by unique key or pk (#2631) 2017-02-20 22:39:36 +08:00
fd9744c5e9 executor: start a goroutine to consume task channel if errorred. (#2678)
Fix goroutine leak.
2017-02-20 22:18:14 +08:00
43c73b7caa util/types: fix bug when truncating string values. (#2686) 2017-02-20 20:35:47 +08:00
846b267b46 util/types: ignore string truncate error. (#2685) 2017-02-20 19:51:08 +08:00
faf74ee5ca executor: fix a bug when subquery meet update. (#2669) 2017-02-18 19:18:50 +08:00
4dcd7c8d41 *: fix bug about scalar subquery. (#2674) 2017-02-18 15:42:26 +08:00
417122af42 ddl: save original schema ID for allocator when rename table. (#2671)
Fixes a bug that renamed table to another database failed to insert.
2017-02-17 22:19:00 +08:00
128e8e86d5 executor: fix bug about left outer join. (#2672) 2017-02-17 20:27:26 +08:00
37977865df *: add max1row info and refine scalar subquery's decorrelation. (#2646) 2017-02-17 19:25:00 +08:00
50af37fd83 store/tikv: open switch of topn. (#2658) 2017-02-16 19:22:33 +08:00
dcc7715ec2 *: support with grant option for grant statement (#2647) 2017-02-16 12:58:07 +08:00
0864f17749 plan: handle int64 type when evaluate limit and count. (#2648)
Fix parameter mark limit for prepared statement.
2017-02-15 17:43:23 +08:00
31d3b87704 executor: fix a bug about table name comparison (#2643) 2017-02-15 13:27:56 +08:00
4d2cfb78f2 tidb: return fields for prepared statements. (#2642)
Prepared statement should return result fields.
2017-02-15 11:41:22 +08:00
8a28721864 executor: fix log format (#2633) 2017-02-14 10:23:45 +08:00
4fd95363b2 *: flush privileges statement (#2602) 2017-02-13 13:17:54 +08:00
1972558dc9 *: change default collation to utf8_bin (#2617)
Currently we doesn't support case insensitive index, our duplication check is always case sensitive.

We should not use case insensitive collation as default collation.
2017-02-10 11:45:35 +08:00
1aa005190f executor: set text for execute prepared statement. (#2620) 2017-02-09 19:22:43 +08:00
f5fac14afb util/sqlexec: introduce a SQLExecutor interface and use it (#2618)
This tiny change also fix a bug that privilege background session never commit
2017-02-09 16:44:15 +08:00
79be7364a9 *: fix reset stmt ctx when there are multiple statements (#2613) 2017-02-08 21:13:22 +08:00
59e8ccf0a5 expression: workaround for wrong timediff function input (#2611) 2017-02-08 20:57:27 +08:00
7520cb8972 fix issue2300 (#2605) 2017-02-08 19:48:51 +08:00
2afa11f8fa executor: do not log expensive query for system table. (#2601) 2017-02-07 21:03:02 +08:00
8bafc3d515 tidb: accelerate unit test (#2590)
Avoid BootstrapSession everytime, just do it once in testSessionSuite.SetUpSuite
2017-02-06 15:11:38 +08:00