Commit Graph

613 Commits

Author SHA1 Message Date
61868f44dc *: Support the statement of "create table ... like" (#2707) 2017-02-22 23:57:04 +08:00
94418b289f *: add a ctx parameter to distsql.Select, kv.Client and tikv.Client (#2699) 2017-02-22 16:02:22 +08:00
5e59fabd1c Fix compatibility with navicat (#2698) 2017-02-22 13:08:03 +08:00
16fa15d890 *: support revoke statement (#2661) 2017-02-21 22:05:50 +08:00
6859d121b9 txn:improvement for point get by unique key or pk (#2631) 2017-02-20 22:39:36 +08:00
416ed4d961 plan: prune cor cols in gby items. (#2568) 2017-02-20 22:34:30 +08:00
1ac3a5a278 Make tidb comptible compatible with navicat (#2681) 2017-02-20 15:08:39 +08:00
4dcd7c8d41 *: fix bug about scalar subquery. (#2674) 2017-02-18 15:42:26 +08:00
37977865df *: add max1row info and refine scalar subquery's decorrelation. (#2646) 2017-02-17 19:25:00 +08:00
2f07f7141d *: Support basic aes_encrypt/aes_decrypt function. (#2640) 2017-02-16 14:03:44 +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
3aa6be2bb1 plan/typeinferer: refine type inferer of builtin func greatest/least (#2628) 2017-02-14 18:28:54 +08:00
4fd95363b2 *: flush privileges statement (#2602) 2017-02-13 13:17:54 +08:00
8ba5d9ee2a *: avoid using TypeDecimal (#2619)
TypeDecimal is misleading, it is not used as Decimal type, it's an unspecified type.
2017-02-10 10:53:05 +08:00
1d17824890 plan/typeinferer: fix a bug when mathematic expression contains datetime or duration operands (#2610) 2017-02-10 09:48:58 +08:00
3e31802e1c plan: collect visit info during logical plan build (#2423) 2017-02-08 14:55:31 +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
cb1c2f0ff9 *: update privilege Checker interface and use it (#2557) 2017-02-06 11:28:06 +08:00
395a9c6129 *: add builtin function UTC_TIMESTAMP (#2592)
* *: add builtin function UTC_TIMESTAMP
2017-02-05 02:16:18 -06:00
15d2065287 Support builtin function timestamp (#2498) 2017-02-05 13:06:27 +08:00
1c01055496 plan: add Contains function on Schema (#2588)
Improve readablity.
2017-02-04 14:25:12 +08:00
fa72f5c7d4 plan: support decorrelate projection. (#2540) 2017-02-04 12:59:26 +08:00
5230e39dd6 plan: fix a bug about prefix index. (#2445) 2017-02-02 13:58:42 +08:00
9e4a4d360c plan: remove redundant key from key info. (#2575) 2017-01-30 18:11:26 +08:00
950583eaf8 plan, tidb-server: add a flag to control statistic info reading. (#2565)
* plan, tidb-server: add a flag to control statistic info reading.

* pass test.

* address comment
2017-01-30 11:29:43 +08:00
df6e1b3b66 plan: move test. (#2569) 2017-01-29 14:13:51 +08:00
e68dcf77dc *: remove ctx from function args. (#2566) 2017-01-28 18:44:02 +08:00
92208e24a3 plan: only plans that have apply will add cache. (#2564) 2017-01-26 16:07:06 +08:00
687cf0f51c plan: add opt flag. (#2542) 2017-01-26 13:04:00 +08:00
4d9b70f0a6 plan, executor: give special treat for index columns when analyze table (#2436)
* plan/statistics: statistics support add index info
2017-01-26 11:24:53 +08:00
461fd98bb0 *: rename the plan interface. (#2547) 2017-01-25 15:10:44 +08:00
32173e988f plan: fix a bug of exists sub query (#2549) 2017-01-25 14:41:53 +08:00
c6cc2f77b9 plan: remove IsCorrelated and SetCorrelated. (#2543) 2017-01-24 18:53:20 +08:00
873403ab70 plan: refine the range calculating. (#2534) 2017-01-24 12:49:12 +08:00
21e21c4a3c *: move the code of distinct logic. (#2539) 2017-01-23 20:43:47 +08:00
150574bacf plan: remove aggregation grouped by unique key. (#2424) 2017-01-23 19:08:48 +08:00
fb429408c9 *: make schema as a pointer. (#2533) 2017-01-23 16:23:47 +08:00
96ee4446e3 *: refactor function. (#2499) 2017-01-22 18:10:38 +08:00
ac10a37ee3 *: support alter table rename table (#2503) 2017-01-22 12:39:54 +08:00
9d536e34a7 *: run a bootstrap session before store is ready (fix race) (#2491) 2017-01-22 11:39:25 +08:00
5aec72ce81 expression,plan: fix some issues of ROUND func (#2461) 2017-01-22 11:35:26 +08:00
383f203735 *: add builtin function FLOOR (#2484) 2017-01-22 11:18:15 +08:00
f145a32063 *: refactor apply plan and executor. (#2411) 2017-01-22 11:06:17 +08:00
6ae4b77d7f plan, executor: clean code (#2520) 2017-01-22 10:18:10 +08:00
2cad815a89 plan: change distinct to aggregation. (#2515) 2017-01-20 15:34:36 +08:00
72403f3578 *: added builtin function sqrt (#2493) 2017-01-18 12:43:59 +08:00
bab721c66b plan: fix a bug when aggregation appears in subquery. (#2486) 2017-01-18 10:45:44 +08:00
83e57cc203 plan: ignore the ambiguous error when retrieving schema first. (#2480)
* plan: ignore the ambiguous error when retrieving schema first.

* address comment.
2017-01-17 23:22:30 +08:00
999517c4f1 Revert "*: run a bootstrap session before store is ready" (#2490) 2017-01-17 15:14:24 +08:00