Commit Graph

244 Commits

Author SHA1 Message Date
f8696d66c0 optimizer/plan: check join path subquery when attach condition.
https://github.com/pingcap/tidb/issues/1031
2016-04-01 13:30:46 +08:00
1fcaa42bb3 *: Fix ddl test and inadvertently modify column info. 2016-03-30 19:21:29 +08:00
1bd25a14d8 store/localstore: add local store xapi support. 2016-03-29 20:33:24 +08:00
xia
15c0319294 *: fix issue 962 and handle other questions about auto increment. 2016-03-18 12:23:55 +08:00
953c66499a optimizer: fix a bug in optimizeJoinOrder
Fix a bug in optimizeJoinOrder.
2016-03-16 15:43:26 +08:00
8c217762c0 optimizer: fix a bug in newInnerJoinPath
Fix a bug in newInnerJoinPath.
2016-03-16 10:26:19 +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
ff94659286 *: replace interface{} with Datum in index range 2016-03-03 22:15:17 +08:00
043ebd5ec8 *: Refactor package organization
1. Move evaluator from optimizer to root dir.
2. Move builtin from expression to evaluator.
3. Remove expression package.
2016-03-02 13:48:22 +08:00
xia
f3576b6b8d Merge branch 'master' into zimuxia/builtin-ctx
Conflicts:
	expression/builtin/groupby.go
2016-03-02 12:12:29 +08:00
e71e25e31c util/types: new Compare implementation with Datum. 2016-03-02 10:22:21 +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
38f275319d Merge remote-tracking branch 'origin/master' into zxylvlp/addAStrcmpBuildin 2016-02-29 15:48:06 +08:00
431879e287 buildinFunc: add a strcmp function
Add a function needed in https://github.com/pingcap/tidb/issues/310 .
2016-02-29 15:43:56 +08:00
64912c8597 *: Implement perfschema with MemoryTable 2016-02-29 10:28:30 +08:00
1dbc9b16e6 Merge pull request #916 from pingcap/shenli/newplan-info
Implement Information_Schema with memory table
2016-02-25 11:47:23 +08:00
c60122c8ea *: address comments 2016-02-24 20:39:08 +08:00
32c6ee2cbf executor: support Explain 2016-02-24 17:46:59 +08:00
77bedd0794 Merge pull request #914 from pingcap/zimuxia/show-ddl
*: Support show background DDL info
2016-02-22 11:40:01 +08:00
xia
79eb12187b *: rename GetDDLBgInfo to GetBgDDLInfo 2016-02-22 11:27:19 +08:00
8c7516324d Merge branch 'shenli/dev-info' into shenli/newplan-info 2016-02-21 11:49:50 +08:00
9997e7f46d *: Use memory table to implement Information_Schema 2016-02-20 21:53:43 +08:00
6188d96f33 optimizer/plan: fix Accept method for plans. 2016-02-19 19:40:22 +08:00
xia
5d92bac8a5 *: support show ddl background info 2016-02-19 18:12:46 +08:00
37585a0022 Merge pull request #909 from pingcap/coocood/show
executor: support Show statement.
2016-02-19 17:17:06 +08:00
501c876459 optimizer: only create public result fields for table.
Fix `make ddl_test`.
2016-02-19 11:22:30 +08:00
58e667fb5f executor: support Show statement. 2016-02-18 15:49:19 +08:00
4f2f242fdf executor: support DDL statements. 2016-02-17 16:36:26 +08:00
0ff85e73ac Merge pull request #905 from pingcap/shenli/grant
*: Support grant stmt in new plan.
2016-02-17 15:27:56 +08:00
138a40eca7 *: Support grant stmt in new plan. 2016-02-17 14:51:07 +08:00
f0326086aa parser/coldef: remove dependency on expression. 2016-02-17 14:12:08 +08:00
a60199f5cd *: Support replace stmt in new plan 2016-02-17 10:43:21 +08:00
f57c558c10 Merge pull request #902 from pingcap/shenli/newplan-insert
Support InsertStmt in new plan
2016-02-16 19:12:32 +08:00
5461e6256b *: Support InsertStmt in new plan. 2016-02-16 17:50:33 +08:00
237c4f6be6 executor: support CreateUserStmt, SetPwdStmt. 2016-02-16 16:13:09 +08:00
0b14ae4c3e executor: support DO, BEGIN, COMMIT, ROLLBACK. 2016-02-16 11:30:18 +08:00
e0fac78a96 executor: support SetStmt and SetCharsetStmt. 2016-02-15 19:30:20 +08:00
3ba53a31b1 executor, optimizer: add simple plan and executor, implement UseStmt. 2016-02-15 17:32:00 +08:00
49f231cdeb optimizer: tiny clean up, remove useless code. 2016-02-15 14:43:09 +08:00
3b30b67518 optimizer, executor: support Union statement and Select Distinct. 2016-02-15 13:30:08 +08:00
ba6996e5ca Merge pull request #895 from pingcap/shenli/delete
*: Support delete in new plan
2016-02-15 11:49:58 +08:00
f164aa5f1e *: Support delete in new plan
Move DeleteStmt from old plan to new plan.
2016-02-15 11:41:52 +08:00
efb2d492d4 fix arm/386 build by explicitly using int64 for rangePoint assigning 2016-02-14 16:17:42 +01:00
7751cce4d4 Merge branch 'master' into coocood/new-update
Conflicts:
	optimizer/plan/plans.go
2016-02-05 17:54:18 +08:00
12c40d67c4 Merge pull request #890 from pingcap/shenli/from-subquery
*: Support subselect in from clasue in new plan.
2016-02-04 15:58:19 +08:00
18d9d35de0 *: Address comment 2016-02-04 15:54:43 +08:00
219b9371fc optimizer/plan: rename index to offset 2016-02-04 15:52:44 +08:00