Commit Graph

176 Commits

Author SHA1 Message Date
9a5809943d *: fix show procedure status resolving error. (#1507) 2016-07-27 15:02:44 +08:00
f5a6c962b5 *: Change ctx.Value from interface{} to Datum (#1494) 2016-07-25 10:42:54 +08:00
432df5458b *: aggregate related code cleanup (#1488) 2016-07-23 14:29:52 +08:00
1e6e1ca6f0 *: Support binlog stmt (#1479)
Parse and ingore it.
2016-07-21 13:39:15 +08:00
cbac6da6ee *: Remove SetCharsetStmt, use SetStmt instead (#1422)
"set @@session.sql_mode=1, names utf8, charset utf8;" is a valid sql statement.
2016-07-11 16:22:33 +08:00
8c504c4795 *: remove splitQualifiedName, joinQualifiedName, and update comments. (#1423) 2016-07-11 16:06:53 +08:00
e35c7ce6eb support nested subquery and fix bug of setting variable (#1412) 2016-07-09 20:25:51 +08:00
0132246ff5 *: Support STATS_PERSISTENT option in CreateTableStmt (#1416)
Parsed but ignored. Just prevent error.
2016-07-09 11:41:27 +08:00
db4cdcfaec parser: reduce memory allocation (#1408) 2016-07-07 16:42:30 +08:00
0450ba0b47 *: unify "See url" format (#1391)
* *: unify "See url" format
2016-07-05 11:21:10 +08:00
b1e863ef80 *: fix count(*) push down. (#1363) 2016-06-30 13:27:36 +08:00
234d0be5de *: Support build range, support betweenExpr, inExpr and likeExpr convert to scalarFunc (#1344)
* *: support build range, support betweenExpr, inExpr and likeExpr convert
to scalarFunc
2016-06-27 20:30:16 +08:00
0eac76eb22 support row expression. (#1349)
support row function and row expression.
2016-06-27 16:03:51 +08:00
af7f2a2e89 correct "order by", "having", "group by"s' resolving rules. (#1326)
resolve order by/ having/ group by correctly.
2016-06-22 11:58:06 +08:00
e051784728 *: Tiny clean up (#1334)
* *: tiny clean up
2016-06-22 10:59:51 +08:00
a4ce312d4b *: Push down where in newTableScan (#1320)
* *: tiny clean up

* *: push down where
2016-06-15 19:48:08 +08:00
67378982bf parser: add ANALYSE TABLE syntax (#1323) 2016-06-15 16:21:39 +08:00
5b2794904b *: Support xapi first row aggregate function in local store. (#1317) 2016-06-14 13:01:25 +08:00
6cefb905e1 *: support distributed aggregate function count (#1289)
support distributed aggregate function count and groupby on local_region
2016-06-07 16:19:48 +08:00
f9c31d9130 Hanfei/rewrite plan (#1272) 2016-06-01 13:12:55 +08:00
2e355f3749 *: Fix issue#1114 (#1231)
* *: supprot assignment

* *: fix issue 1114
2016-05-13 11:26:26 +08:00
e742def024 add foreign key on update and on delete support (#1152)
* add foreign key on update and on delete support
2016-04-27 19:44:00 +08:00
3671f3958f xapi: support IN expression push down. (#1147)
* xapi: support IN expression push down.
2016-04-25 19:50:33 +08:00
bbffc220ed *: Tiny cleanup (#1145)
Fix typo
2016-04-23 10:27:13 +08:00
3b25069f84 evaluator: avoid evaluate independent subquery multiple times. (#1144)
* evaluator: avoid evaluate independent subquery multiple times.

* ast: rename UseOuterContext to Correlated.
2016-04-22 12:51:18 +08:00
041dfd97c1 executor: evaluate subquery before executing outer query. (#1133)
* executor: evaluate subquery before executing outer query.

So outer query can push down subquery values.

* evaluator: extract a function to evaluate subquery.

* evaluator: add comments on exported function.
2016-04-21 21:51:39 +08:00
ff05329a05 parser: support index hint syntax. (#1113) 2016-04-19 18:42:44 +08:00
e1b2c8bf0d evaluator: fix a bug in bebacf4f3a (#1087) 2016-04-12 20:32:12 +08:00
bebacf4f3a evaluator: just one time eval (#1062)
* evaluator: just one time eval
2016-04-12 12:34:27 +08:00
dc8bd3e337 *: optimization, do not read not referenced columns. 2016-04-06 13:29:21 +08:00
ce96978182 *: Add index option in IndexInfo
1. Add index option in IndexInfo.
2. Show index option content when running show index statement.
2016-03-16 22:09:11 +08:00
7f57652532 *: Support more create table options
The options are parsed but ignored.
Fix: https://github.com/pingcap/tidb/issues/975
Fix: https://github.com/pingcap/tidb/issues/974
2016-03-16 10:41:42 +08:00
0fa8df585a evaluator: change SetDatum and implement ToBool, ToInt
Change SetDatum and implement ToBool, ToInt.
2016-03-11 19:58:40 +08:00
5a81a2f5d4 evaluator: change Get/SetValue to Get/SetDatum.
Chnage Get/SetValue to Get/SetDatum in evaluator.go .
2016-03-11 13:37:58 +08:00
352c27829a evaluator: move date_add and date_sub to buildin
Move the evaluate of ast function date_add and date_sub to builtin.
2016-03-10 19:04:33 +08:00
f4bf763d27 evaluator: move the evaluate of ast function trim to buildin
Move the evaluate of ast function trim to builtin.
2016-03-09 18:06:16 +08:00
02ccdc363a evaluator: move the evaluate of ast function substring_index and locate to buildin
Move the evaluate of ast function substring_index and locate to buildin.
And Change some logic in locate function to make its behavior more similar with MySQL.
2016-03-08 17:30:43 +08:00
afd369e042 evaluator: move the evaluate of ast functions to buildin
Move the evaluate of ast functions extract, convert and substring to buildin.
2016-03-08 10:50:14 +08:00
515f193bd2 *: Remove coldef package
There are lots of redundancies between ast and coldef. So we remove
coldef.
2016-03-05 19:11:04 +08:00
3a25f68469 *: replace interface with Datum in ast.Row. 2016-03-02 15:32:42 +08:00
e71e25e31c util/types: new Compare implementation with Datum. 2016-03-02 10:22:21 +08:00
09fdc21529 *: Remove field package
It is useless when we remove field.ResultField
2016-03-01 16:32:16 +08:00
9f81af66ee Merge remote-tracking branch 'origin/master' into shenli/rm-rset-stmt-plan 2016-03-01 14:00:29 +08:00
b5fbabc05e *: Remove plan.go/stmt.go/rset.go
Move interface into ast and remove interfaces.
2016-03-01 13:53:48 +08:00
141c3ec69c ast: add datum_test.go 2016-03-01 11:42:17 +08:00
f6c88b0216 *: address comments. 2016-03-01 11:06:53 +08:00
d9f98132ee ast: introduce 'Datum'
Datum is a value box intended to replace 'interface{}' for better performance and easier to use.
2016-03-01 10:54:59 +08:00
58e667fb5f executor: support Show statement. 2016-02-18 15:49:19 +08:00
5461e6256b *: Support InsertStmt in new plan. 2016-02-16 17:50:33 +08:00
3b30b67518 optimizer, executor: support Union statement and Select Distinct. 2016-02-15 13:30:08 +08:00