Commit Graph

114 Commits

Author SHA1 Message Date
7aa2791f5b *: Address comment 2016-01-23 13:36:45 +08:00
6ed674f2fe *: Address comment 2016-01-23 13:30:06 +08:00
aa431ee5e4 Merge remote-tracking branch 'origin/master' into shenli/group-concat 2016-01-22 20:03:46 +08:00
a5e79c67b9 *: Support group_concat 2016-01-21 22:19:26 +08:00
8b1bed8e69 *: Support avg in new plan 2016-01-21 17:34:24 +08:00
44fd9d8269 Merge remote-tracking branch 'origin/master' into shenli/agg-max
Conflicts:
	ast/functions.go
	optimizer/evaluator/evaluator.go
	optimizer/optimizer.go
	optimizer/plan/planbuilder.go
	optimizer/typeinferer.go
2016-01-21 15:06:53 +08:00
6560db433c *: Support max/min 2016-01-21 09:24:42 +08:00
f703633295 Merge pull request #861 from pingcap/shenli/agg-sum
*: Support sum in new plan
2016-01-20 22:24:28 +08:00
eba936c579 *: Address comment 2016-01-20 21:49:29 +08:00
686dc63352 *: Support sum in new plan 2016-01-19 22:58:11 +08:00
5266298560 executor/converter,ast: Fix bugs for running phpmyadmin
1. Add ShowGrants to oldShow convert, phpmyadmin can run up now.
2. Fix a bug in Accept of FuncLocateExpr, handling the Pos arg of LOCATE() not given.
2016-01-18 12:17:18 +08:00
9a997f4b93 *: Add HasAggFlag function 2016-01-14 13:32:36 +08:00
f22b98a641 *: Address comment 2016-01-14 12:32:35 +08:00
61a4ce5ad2 Merge pull request #838 from pingcap/qiuyesuifeng/cleanup
Tiny clean up.
2016-01-12 13:06:11 +08:00
2134e23a6e Merge pull request #837 from pingcap/shenli/refactor-distinct
Shenli/refactor distinct
2016-01-12 11:31:57 +08:00
bf455855fc ast: Replace memkv with a map for checking distinct 2016-01-12 11:02:26 +08:00
4bb35f1ae4 *: clean up executorBuilder.build and fix typo. 2016-01-12 00:01:08 +08:00
c0b22d334f ast: flag setter sort. 2016-01-11 21:46:16 +08:00
4f0e90a95f Merge remote-tracking branch 'origin/master' into shenli/dev-agg-count
Conflicts:
	executor/executor.go
2016-01-11 14:00:53 +08:00
a437d44690 ast: Address comments 2016-01-11 11:52:38 +08:00
18ff43a511 *: Address comments 2016-01-11 11:25:16 +08:00
760eb79a1a ast: Address comments 2016-01-10 22:17:30 +08:00
f996a0ce9c *: Support count aggregate function in new plan and add unit tests. 2016-01-09 11:26:35 +08:00
xia
d7fecbdbea *: address comments 2016-01-06 17:34:08 +08:00
xia
aba44d445c Merge branch 'master' into zimuxia/inspectkv-sql 2016-01-06 12:46:32 +08:00
805a745873 ast: tiny clean up. 2016-01-01 10:04:13 +08:00
6ba33a012e ast: clean up expr/func/misc. 2015-12-31 20:24:15 +08:00
f19a5f44d6 ast: tiny clean up ddl and dml. 2015-12-31 20:07:19 +08:00
41209693d2 ast: rename newNod to newNode. 2015-12-31 18:22:03 +08:00
xia
be2039cf44 Merge branch 'master' into zimuxia/inspectkv-sql 2015-12-29 20:41:24 +08:00
e45c31b89d Merge pull request #754 from hhkbp2/complete-adddate,subdate-functions
add ast evaluation for date arith
2015-12-29 14:35:00 +08:00
405e6c57d4 add ast evaluation for date arith 2015-12-29 11:42:02 +08:00
xia
d1eb161fad *: plan support admin check table and admin show ddl 2015-12-25 18:14:52 +08:00
631045ce5f parser: address comment. 2015-12-24 10:47:37 +08:00
bfd188d844 parser: remove YYParse function, use Parse and ParseOne instead. 2015-12-23 18:25:28 +08:00
56ae5f3611 Merge pull request #751 from pingcap/coocood/prepare
executor: implement executor for prepared statement.
2015-12-23 18:12:32 +08:00
4ea31357ae *: Support show index from table 2015-12-22 23:05:06 +08:00
cce746ee8a Merge branch 'master' into coocood/prepare
Conflicts:
	session.go
2015-12-22 13:24:57 +08:00
2fe9938ca0 *: Support show procedure status syntax 2015-12-21 12:15:56 +08:00
dcdb32dbde plan. executor: support prepared statement. 2015-12-18 16:56:08 +08:00
2e1cf26a32 optimizer: typeInferrer supports more expression.
This is require for implementing prepared statement, because binary protocol depends more
on the result field type to decode value, we have to correctly set the result field type.

For statement like 'select ?', the type of the field is unknown until we execute the statement with argument,
If the field type of  parameter marker `?' is not set properly, client will not be able to read the value.
2015-12-16 18:35:45 +08:00
ddea31b28e ast: address comments. 2015-12-14 10:37:35 +08:00
4436aff284 ast: use IsConstant function
address comment
2015-12-14 10:37:34 +08:00
16757fd9b0 optimizer: add comment. use constant flag. 2015-12-14 10:37:34 +08:00
c970ff6d4d ast: move flag setter to ast 2015-12-14 10:37:34 +08:00
8337e63529 ast, optimizer: implement flag setter. 2015-12-14 10:37:34 +08:00
6222303129 ast, optimizer: add flag field for expression. 2015-12-14 10:37:34 +08:00
1a17ea014e Merge remote-tracking branch 'origin/master' into shenli/fix-issue-694 2015-12-09 17:53:33 +08:00
9e6948307c *: Parse delay_key_write option but ignore it
Prevent compile error. Fix: https://github.com/pingcap/tidb/issues/694
2015-12-09 16:18:39 +08:00
949d92d6df optimizer, executor: replace panic with log.Fatal 2015-12-07 18:39:51 +08:00