Commit Graph

8026 Commits

Author SHA1 Message Date
270ead000e executor: Fix issue 1154 (#1159)
* executor: fix issue 1154
2016-04-26 13:07:05 +08:00
36ef582b93 perfschema: fixed concurrent map bug (#1160) 2016-04-26 13:06:59 +08:00
bd2b356725 *: fix dependency. (#1157)
etcd has updated the latest grpc, so will should not checkout grpc to an old version
And for `pd` and `ticlient`, add '-d' to skip build, just download.
2016-04-26 11:00:15 +08:00
74aa91a0fc xapi/xeval: fix empty value list. (#1155)
Fix empty value list.
Do not push value list if it has float32.
add test for float32
2016-04-26 09:35:19 +08:00
3671f3958f xapi: support IN expression push down. (#1147)
* xapi: support IN expression push down.
2016-04-25 19:50:33 +08:00
4ced2f7e10 *: implement some other builtin functions (#1137)
Support ISNULL(), LTRIM(), RTRIM(), LCASE() and UCASE().
Add alias for LOWER() and UPPER().
2016-04-23 21:04:26 +08:00
d73a3fa6f0 Merge pull request #1151 from pingcap/ngaut/tiny-cleanup
arena: tiny clean up.
2016-04-23 15:31:25 +08:00
5bbb710b76 arena: tiny clean up. 2016-04-23 15:19:31 +08:00
15db558224 arena: clean up tests. (#1150) 2016-04-23 02:13:34 -05:00
0b2f00088c *: Make bounded table cursor aligned to fix i386 panic (#1149)
See: https://golang.org/src/sync/atomic/doc.go#L41
2016-04-22 21:36:59 -05: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
d78e4044cc *: fix misspells (#1143) 2016-04-22 11:30:37 +08:00
f8d3022eee Merge pull request #1131 from pingcap/hanfei/desc_pushdown
support desc push_down
2016-04-22 11:08: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
65559fc5e3 fix docker compile (#1138) 2016-04-21 21:43:09 +08:00
661339c90c parser: Support truncate t (#1136)
* parser: support truncate t
2016-04-21 18:05:50 +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
130f9f2452 table/tables: change bounded table cursor type from int32 to int64 (#1127)
In case when executed statements exceeds max int32, the cursor becomes a negative value.
2016-04-21 10:24:50 +08:00
dda89bc9dd *: Do not specify pd version (#1126)
pd move vendor to cmd directory, so we do not need to specify its version now.
2016-04-20 16:02:58 +08:00
d16a23a43b kv: add comment on error instances. (#1124)
* kv: add comment on error instances.

fix glint.
2016-04-20 15:48:22 +08:00
f8927d93b5 kv: add SeekReverse for mockTxn and mockSnapshot (#1122)
fix test.
2016-04-20 14:58:04 +08:00
df8d1de841 [DNM] kv: add SeekReverse method for Retriever. (#1119)
* kv: add `SeekReverse` method for Retriever.
2016-04-20 14:41:34 +08:00
b51ab763df plan: support limit pushdown (#1105)
* plan: support limit pushdown
2016-04-20 13:32:20 +08:00
8a3a59deb1 *: fix ci build by checking out a previous version of pd. (#1120) 2016-04-20 13:12:49 +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
0a0af5aca4 *: remove driver usage in test. (#1104)
remove driver usage in test.
2016-04-20 09:45:04 +08:00
ff05329a05 parser: support index hint syntax. (#1113) 2016-04-19 18:42:44 +08:00
ecc59c99eb perfschema: Fix nil pointer panic when perfschema is uninitialized (#1111)
In bootstrap stage, ps may be not well initialized. We should make it
safe.
2016-04-19 17:28:17 +08:00
0478acaa1b *: fix build by checkout to an old version of grpc. (#1112) 2016-04-19 17:13:08 +08:00
74ffeb8011 perfschema: make go vet happy. (#1110) 2016-04-18 21:38:14 +08:00
64546d478b perfschema: fixed memory leak issue (#1099) 2016-04-18 06:17:35 -05:00
895e9a0d86 *: fix issue#1089 and add tests (#1106) 2016-04-18 17:31:49 +08:00
8d877cc87c *: drop support of running tidb as library. (#1102)
Since we supported unix socket, use TiDB as a library no longer provide much benefit.
Use MySQL driver should be the only way to access TiDB.
2016-04-18 13:20:01 +08:00
e64539679a kv: remove btree, and use rbtree to implement membuffer. (#1043) 2016-04-18 11:38:37 +08:00
b4f41c18a4 store/localstore: evaluate where before get row. (#1093)
* store/localstore: evaluate where before get row.

* *: fix format.
2016-04-18 11:18:00 +08:00
31b9cc7339 bootstrap: Add recheck after bootstrap doDMLWork failed. (#1097)
Add recheck after bootstrap doDMLWork failed.
2016-04-18 10:08:01 +08:00
cd3d424252 evaluator: partially fix issue #1098 (#1100)
Fix the incorrect behavior of `substring` function, multi-byte charset still hasn't been supported.
2016-04-17 00:43:30 +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
2baa40f59b tide-server/server: support unix socket. (#1095) 2016-04-14 02:08:08 -05:00
8c164bc078 evaluator,parser: support ASCII(). (#309) (#1083)
* evaluator: add a builtin function wanted by #310.

* parser: update parser for ASCII().
2016-04-14 01:53:50 -05:00
baa39688fc fix docker, make clean will remove /go/bin/ (#1092) 2016-04-13 10:30:43 +08:00
708c195782 *:generate local schema ID for memory table. (#1094)
* *:generate local schema ID for memory table.

* meta/autoid: reorder import
2016-04-13 10:29:16 +08:00
a85c94501e Update README.md 2016-04-13 01:06:04 +08:00
e1b2c8bf0d evaluator: fix a bug in bebacf4f3a (#1087) 2016-04-12 20:32:12 +08:00