Commit Graph

8026 Commits

Author SHA1 Message Date
95b2951ae2 plan: return table dual directly when the condition is false. (#3144) 2017-04-26 00:07:10 +08:00
79a89fc5bb plan: new plan supports join. (#3126) 2017-04-25 23:52:18 +08:00
ee312bfd71 expression: Fix code style according to goword (#3123)
ref https://github.com/pingcap/tidb/issues/3120
2017-04-25 23:35:45 +08:00
7018898f30 Revert "*: Remove useless code and use the DAG mode in tests (#3069)" (#3142)
This reverts commit d8c52e8ac9325df750c2f985fe5f743e840d3938.
2017-04-25 23:20:09 +08:00
8aab91fb3c allowed zero argument in typeinferer (#3137) 2017-04-25 23:08:28 +08:00
5c707ecf73 ddl, util/types: make converter correctly convert string to hex or bit. (#3115) 2017-04-25 22:41:14 +08:00
7699d3fb76 *: refine EvalBool function. (#3139) 2017-04-25 22:07:17 +08:00
b9e87ee5c9 .travis.yml: Add the config for import path (#3141)
Signed-off-by: Ce Gao <ce.gao@outlook.com>
2017-04-25 18:40:45 +08:00
31d2cc8351 parser: make "ENGINE = xxx" optional in partition definition (#3140) 2017-04-25 17:20:37 +08:00
1f75f389a6 plan: new plan support hash aggregation. (#3093) 2017-04-25 15:40:47 +08:00
a01e83d9a0 *: add checklist (#3135) 2017-04-25 15:01:25 +08:00
fcc34b7ba7 ddl: correct comments mistake. (#3119) 2017-04-25 11:53:15 +08:00
5494a54db4 util: correct comments mistake (#3121) 2017-04-25 09:16:50 +08:00
2fcd97f507 *: added pre-commit hook. (#3112) 2017-04-24 23:20:39 +08:00
f9a0abc51f plan: new plan support union. (#3085) 2017-04-24 19:38:19 +08:00
22eef1dcaf circleci: fix bad gopath under forked proj (#3125) 2017-04-24 19:33:53 +08:00
73c9e12f24 infoschema: add more empty tables (#3127) 2017-04-24 19:27:25 +08:00
93f4780f40 plan: add variable countReliable to physicalPlanInfo (#3011) 2017-04-24 17:07:31 +08:00
1685dcb1e0 tablecodec: correct comments mistake (#3122) 2017-04-24 10:08:15 +08:00
8c51d4b4b1 Builtin: Add a new built-in functin MAKEDATE (#3105) 2017-04-24 08:09:12 +08:00
6518819274 builtin: inet6_aton function (#3051) 2017-04-24 07:57:31 +08:00
5243f6f461 expression: fixed pow/power return wrong error message when there more than two arguments. (#3114) 2017-04-23 21:13:27 +08:00
3b82630ff4 builtin bit_count (#3087) 2017-04-23 21:05:22 +08:00
1d8dbb1682 built_in string right (#3088) 2017-04-23 20:37:15 +08:00
dfee890a31 plan: process the case that index col has specified length. (#3110) 2017-04-23 13:21:25 +08:00
594fab2f49 infoschema: add VIEWS and ROUTINES table (#3108) 2017-04-22 22:14:57 +08:00
20905c0725 util/types: cleanup error.Trace (#3113) 2017-04-22 21:58:52 +08:00
e4608cb629 *: added_goword_for_spelling_checking (#3116) 2017-04-22 17:06:06 +08:00
ef7bdb0d1f ddl, statistics: support drop table and schema. (#3106) 2017-04-22 16:48:28 +08:00
0cc52a8b1d plan: consider primary key for index scan (#3109)
index encode handle as value, we consider it when pushing filter.
2017-04-21 16:00:10 +08:00
0de1339979 store/tikv: export mocktikv as a storage engine. (#3107)
So DAG mocktikv can run integration tests.
2017-04-21 14:11:38 +08:00
050e7b32e2 expression: fix bug in sleep function. (#3101) 2017-04-21 13:31:13 +08:00
bbad497023 ddl, statistics: update the stats table after creating/ droping column. (#3061) 2017-04-21 11:51:06 +08:00
f3282eb628 infoschema: fix probably a TABLE_TYPE typo, restore mysql compatibility (#3103) 2017-04-20 21:42:13 -05:00
790cbd615a executor: initialize index scan concurrency. (#3097)
Index scan concurrency is not initialized, so the effective concurrency was 1.
For table lookup task, the concurrency should use table scan concurrency instead.
2017-04-20 21:03:04 +08:00
5d146946df builtin: impl export_set (#3036) 2017-04-20 19:37:12 +08:00
0316046e33 executor: fix race. (#3096) 2017-04-20 16:39:22 +08:00
7f6d801a57 ddl: make test stable (#3091) 2017-04-20 14:16:32 +08:00
0f2afbf44b statistics: prepare for analyze part of a table (#3062)
We need to make somthing like 'analyze index...' work, this is only the first step.
2017-04-20 14:05:51 +08:00
MQ
c4764329f3 expression: add builtin function 'period_add' (#3001) 2017-04-20 13:23:04 +08:00
7b381c0b00 plan/validator: return an error when alter auto_incerment (#3041) (#3072) 2017-04-20 01:31:05 +08:00
12f07daff2 expression: make group_concat handle character correct (#2821) (#3083) 2017-04-19 22:06:03 +08:00
78d4520199 *: resolve conflict on 'in' and add builtin position (#3079) 2017-04-19 21:30:48 +08:00
39c629a477 plan: simplify the selection converting phase. (#3080) 2017-04-19 21:07:39 +08:00
bb71d83456 ddl: check unsupported charset. (#3086)
We only supports a few charset, when a charset is not supported, we should return error.
Also enforce charset to be lower case.
2017-04-19 20:34:49 +08:00
effa7ea7d3 fix some typo in comments (#3084) 2017-04-19 00:39:12 -05:00
c219218a19 fix REPLACE FUNC (#3082)
when the from_str is "", use REPLACE FUNC.

+-----------------------------------------------------------------------+
| REPLACE('www.mysql.com', '', 'tidb')                                  |
+-----------------------------------------------------------------------+
| tidbwtidbwtidbwtidb.tidbmtidbytidbstidbqtidbltidb.tidbctidbotidbmtidb |
+-----------------------------------------------------------------------+
1 row in set (0.01 sec)
But the correct result should be:

+-----------------------------------------------------------------------+
| REPLACE('www.mysql.com', '', 'tidb')                                  |
+-----------------------------------------------------------------------+
| www.mysql.com |
+-----------------------------------------------------------------------+
1 row in set (0.01 sec)
2017-04-19 12:45:51 +08:00
59154905aa *: rename table-driven tests name. (#3081) 2017-04-19 10:02:57 +08:00
18749a6061 plan: forbid agg push across multi join. (#3058)
aggregation is a pipeline brake. if we push it across mutijoin, there may exist a brake on top of every join.
2017-04-18 23:47:08 +08:00
375148460f statistics: process the case that we lack a column in stats table (#3075)
When we can't find a column in stats table, we return a pseudo table for now. It's not reasonable.
We should return a real table and use pseudo estimation for the missed histogram.
2017-04-18 23:34:52 +08:00