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
e344410318
Merge branch 'master' into hanfei/desc_pushdown
2016-04-22 10:49:24 +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
f0de6488cf
reverse the ranges in localstore
2016-04-21 15:38:05 +08:00
e06f3aa140
Merge branch 'master' into hanfei/desc_pushdown
2016-04-21 14:48:01 +08:00
81df7532e1
support desc push_down
2016-04-21 13:45:32 +08:00
b78d02c110
executor: Fix show status bug ( #1128 )
...
* executor: fix show status bug
2016-04-21 11:13:06 +08:00
b01afcd47b
xapi/xeval: support LIKE ( #1080 )
...
* xapi/xeval: support LIKE
* xapi/eval: only support simple like.
* *: address comment.
2016-04-21 10:34:35 +08:00
b51ab763df
plan: support limit pushdown ( #1105 )
...
* plan: support limit pushdown
2016-04-20 13:32:20 +08:00
c26dfd54e4
executor: Change interface to datum in executor. ( #1103 )
...
Change interface to datum in executor.
2016-04-20 09:52:23 +08:00
bfa3ed7a2d
*: Fix issue #1071 ( #1088 )
...
* *: fix issue#1071 and add tests
* util: use RoundFloat in the ToBool and add tests.
2016-04-14 16:56:24 +08:00
52d78136e5
executor: fix bug when the limit value is less than SortBufferSize. ( #1085 )
2016-04-12 19:37:11 +08:00
bdac8ecafa
Merge branch 'master' into hanfei
2016-04-12 14:17:33 +08:00
19310f1511
change format
2016-04-12 13:27:07 +08:00
bebacf4f3a
evaluator: just one time eval ( #1062 )
...
* evaluator: just one time eval
2016-04-12 12:34:27 +08:00
3a92f567b9
executor: support limit sort
2016-04-12 12:09:25 +08:00
8d9bf2fd6d
executor: xapi support desc ordered table lookup. ( #1078 )
...
* executor: xapi support desc ordered table lookup.
* *: fix golint comment.
* executor: fix push order for multi-column index.
2016-04-10 18:01:49 +08:00
f5daa55eb6
executor: support xapi expression push down. ( #1069 )
...
* executor: support xapi expression push down.
* *: address comment.
* *: fix subquery select from same table.
* executor: add break when matched.
* store/localstore: address comment.
2016-04-09 17:03:29 +08:00
0537b67d2b
*: Add more info into TableInfo and fix bug in show create table ( #1072 )
...
Fix: https://github.com/pingcap/tidb/issues/1061
2016-04-09 15:59:51 +08:00
0a9ece01c3
*: import 'github.com/pingcap/tipb/go-tipb' ( #1067 )
2016-04-08 11:07:16 +08:00
08034540f0
*: Add leak test
...
* *: add leak test and tiny clean up
* *: unify test format and add leak test
Conflicts:
store/localstore/compactor_test.go
mysql/error_test.go
*: add leak test
2016-04-07 20:53:45 +08:00
eb941fb12f
*: Support mysqldump dump database
...
1. Fix bug in show tables like with escape char.
2. Parse but ignore sql_cache/sql_no_cache.
2016-04-07 16:25:49 +08:00
204ed5456b
*: fix ddl test
...
Replace tablecodec TableToProto with ColumnsToProto, avoid index out of range panic.
2016-04-06 21:20:18 +08:00
dc8bd3e337
*: optimization, do not read not referenced columns.
2016-04-06 13:29:21 +08:00
df71593935
*: add tests for xapi
2016-04-01 11:26:29 +08:00
1bd25a14d8
store/localstore: add local store xapi support.
2016-03-29 20:33:24 +08:00
4319909e08
*: unify error format in infoschema package
2016-03-29 11:10:56 +08:00
92cfb941bb
Merge pull request #1013 from pingcap/coocood/remove-select-points
...
xapi/tipb: remove points in select request.
2016-03-25 18:07:30 +08:00
08bf548700
*: Fix replace statement conflict with multiple row bug.
...
Fix: https://github.com/pingcap/tidb/issues/1012
2016-03-25 16:40:12 +08:00
3ee6c17389
executor: do not append max int64 handle as pb range.
2016-03-25 14:50:05 +08:00
64cf670b7e
xapi/tipb: remove points in select request.
...
Points was introduced to reduce the data size if there are many point ranges.
But it makes code more complex than expected, and the reduced size is trivial compares to the total package size.
Remove it to simplify code.
2016-03-25 13:07:49 +08:00
93c06f236c
Merge pull request #1011 from pingcap/shenli/fix-989
...
executor: Fix replace statement bug when handle is changed.
2016-03-25 11:35:51 +08:00
211a3c0c9c
executor: Fix replace statement bug when handle is changed.
...
Fix: https://github.com/pingcap/tidb/issues/989
When replace row we should check if handle is changed.
2016-03-25 11:04:28 +08:00
0157bcddc1
executor: add XAPI executor.
2016-03-25 10:21:59 +08:00
6604c81f5a
*: fix issue#996 and handle prepared retry
2016-03-24 12:08:53 +08:00
cda31ae7ab
executor: Fix set multiple variables bug
...
Fix: https://github.com/pingcap/tidb/issues/998
Refactor some old code.
2016-03-23 17:42:55 +08:00
4a2fe15c63
Merge remote-tracking branch 'origin/master' into zimuxia/issue-962
...
Conflicts:
ddl/ddl.go
2016-03-18 14:38:59 +08:00
7a7026e750
*: add a null kind judgment in the update statement and update comments
2016-03-18 14:29:57 +08:00
4f90f76477
executor: update TestReplace
2016-03-18 12:23:55 +08:00
15c0319294
*: fix issue 962 and handle other questions about auto increment.
2016-03-18 12:23:55 +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
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
ce531c7f0d
executor: fix issue959 and add tests
2016-03-10 15:13:18 +08:00
8729b45bb6
*: add tests
2016-03-09 16:52:52 +08:00
c3e3a7c580
*: fix issue 827
2016-03-08 18:07:44 +08:00
ac12b71714
*: replace interface{} with Datum in convert.
2016-03-07 14:11:17 +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
449b34f24b
*: replace interface{} with Datum in codec.
2016-03-04 12:54:34 +08:00
ff94659286
*: replace interface{} with Datum in index range
2016-03-03 22:15:17 +08:00