Commit Graph

58 Commits

Author SHA1 Message Date
de27a91202 *: Merge adjacent handles when building key range (#1696) 2016-09-07 11:12:06 +08:00
232605aa0e Avoid using tipb.KeyRange (#1685)
Do not use tipb.KeyRange.
Use EncodeRowKeyWithHandle to generate endKey.
Avoid decode values when only need handle.
2016-09-05 14:53:46 +08:00
b9f67a8b3d executor: push limit on double read when where is nil (#1683) 2016-09-03 20:06:57 +08:00
89f840e6a0 fix the bug of double read with order and limit (#1681) 2016-09-02 17:53:14 +08:00
9ca75f13bb fix a bug about double read index. (#1680) 2016-09-02 16:30:59 +08:00
9923f8cfa9 Reduce slice growth (#1663) 2016-08-30 19:52:41 +08:00
5211e8508e executor: Enlarge index scan batch size (#1655) 2016-08-30 09:59:03 +08:00
a09d282711 executor: tiny clean up (#1653)
* executor: tiny clean up

* replace more time.Now().Sub() with time.Since()
2016-08-29 06:20:23 -05:00
c0058d2b1c store/tikv: turn on Decimal, Avg, Sum switch and fix First function (#1651) 2016-08-29 14:42:14 +08:00
c8ca8f2451 executor: reduce XSelectTableExec info log (#1650) 2016-08-29 14:19:58 +08:00
88369ab886 executor: XSelectIndexExec fetch index and get data concurrently (#1622) 2016-08-29 13:32:28 +08:00
f2d8b3c108 remove New*** from variable name. (#1644) 2016-08-29 10:18:45 +08:00
06b2a64677 executor: turn on switch for tipb.ExprType_MysqlTime. (#1629)
* executor: turn on switch for tipb.ExprType_MysqlTime.

* executor: turn off decimal as the codec has changed.
2016-08-24 10:28:31 +08:00
e31b281ee7 *: use new MyDecimal implementation. (#1611) 2016-08-22 20:24:39 +08:00
e4ac5301ce remove useless code. (#1609) 2016-08-20 16:00:20 +08:00
99c3bba7c7 xapi: Async fetch xapi result (#1599) 2016-08-19 17:16:38 +08:00
469580ffd0 Use gogo proto for tipb (#1603) 2016-08-18 18:03:40 +08:00
b3a7272db7 *: enable tikv index aggregate (#1594) 2016-08-17 22:32:10 +08:00
96fe96a6c4 *: Add keepOrder parameter for xapi.Select (#1596)
Not all xapi request should return in key order.
2016-08-17 17:27:16 +08:00
4a2f5ba1b7 *: Abstract coprocess result to interface (#1587) 2016-08-16 10:44:16 +08:00
e687f908d3 *: tiny clean up (#1404) 2016-07-07 09:50:45 +08:00
d04b0b997c *: support index length (#1350)
For string columns, indexes can be created that use only the
leading part of column values, using col_name(length) syntax
to specify an index prefix length
2016-07-02 13:26:40 +08:00
a9aad12ba8 *: move tablecodec package out of xapi. (#1335) 2016-06-22 13:32:26 +08:00
a4ce312d4b *: Push down where in newTableScan (#1320)
* *: tiny clean up

* *: push down where
2016-06-15 19:48:08 +08:00
58ef9b776d *: Fix select with groupby but without aggregate function bug (#1315)
If there is groupby clause but no aggregate function, we should also return one row for each group.
2016-06-13 14:17:13 +08:00
004500171e *: Refactor datum arithmetic codes and support Add/Div in xeval. (#1311)
Prepare for aggregate function sum/avg.
2016-06-13 11:24:07 +08:00
e3597b6548 Add Datum.IsNull() fucntion (#1298)
Add IsNull function for Datum to simplify null check.
2016-06-07 23:35:25 +08:00
a71005710f plan: merge 'optimizer/plan' and 'optimizer' into one package. (#1300) 2016-06-07 20:49:05 +08:00
22f3f914e4 *: Fix aggregate bug found in sqllogical test (#1299) 2016-06-07 20:46:32 +08:00
10359b0052 rewrite executor. (#1294)
* rewrite executor.
2016-06-07 20:32:15 +08:00
1e7a9b44b3 *: Fix xaggregate with index scan panic (#1297)
* *: Fix xaggregate with index scan panic

* *: Make gofmt happy
2016-06-07 18:29:51 +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
08bfa2f423 executor: Increase XTableScan default concurrency from 1 to 10 (#1269) 2016-05-30 16:56:32 +08:00
e22d8d06da *: xapi push down mysql.Duration and mysql.Decimal. (#1243) 2016-05-20 18:30:30 +08:00
602da73640 store/tikv/mock-tikv: add coprocessor support. (#1230)
* store/tikv/mock-tikv: add coprocessor support.
2016-05-17 18:19:51 +08:00
f6e7a331d0 codec: fix datum convert to float32. (#1217) 2016-05-10 16:07:18 +08:00
aa3ebc53da executor: Parallelly run table lookup tasks (#1212)
* executor: Parallelly run table lookup tasks
2016-05-09 22:05:41 +08:00
690ab9f274 Parallel coprocessor request (#1204)
Send coprocessor requests parallely
2016-05-09 11:13:21 +08:00
6efa22c6c7 executor: run table lookup tasks concurrently if there is no limit. (#1206)
* executor: run table lookup tasks concurrently.

* executor: set NoLimit and OutOfOrder property for IndexScan plan.

And set index concurrency to 10 if out of order.
2016-05-09 10:40:33 +08:00
3bd7cf1822 executor, store/localstore: limit push down. (#1197)
* executor, store/localstore: limit push down.
2016-05-05 16:09:00 +08:00
4eab06df0d *: Fix issue 1135 (#1188)
* *: fix issue 1135

* tidb_server: set the logging level to error
2016-05-03 21:22:28 +08:00
f562161918 executor: make table lookup task size increasing. (#1153)
* executor: make table lookup task size increasing.
2016-04-26 15:55:37 +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
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
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
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