Commit Graph

2212 Commits

Author SHA1 Message Date
01a42dfb8c *: Convert expression to pbExpr and implement builtin function (#1358)
* *: convert expression to pbExpr and implement the builtin function
2016-06-30 17:16:48 +08:00
a75f677900 support set variable, prepare and insert stmt. (#1359) 2016-06-29 18:26:47 +08:00
87bbb12057 support in subquery and compare subquery. (#1355) 2016-06-29 17:00:58 +08:00
cad94acb54 Store row data in single kv pair (#1347) 2016-06-28 11:15:09 +08:00
0eac76eb22 support row expression. (#1349)
support row function and row expression.
2016-06-27 16:03:51 +08:00
34ebc07aae support union and distinct in new plan. (#1345)
support union and distinct in new plan
2016-06-24 18:05:36 +08:00
95be5148ce process wildcard and gby correctly. (#1340) 2016-06-23 17:18:28 +08:00
1f080550fb support dirty transaction. (#1339)
support dirty transaction.
2016-06-23 14:10:37 +08:00
a9aad12ba8 *: move tablecodec package out of xapi. (#1335) 2016-06-22 13:32:26 +08:00
af7f2a2e89 correct "order by", "having", "group by"s' resolving rules. (#1326)
resolve order by/ having/ group by correctly.
2016-06-22 11:58:06 +08:00
e051784728 *: Tiny clean up (#1334)
* *: tiny clean up
2016-06-22 10:59:51 +08:00
dd6bfacdb8 *: refactor index, use TableInfo and IndexInfo to create an Index (#1333) 2016-06-21 15:26:20 +08:00
17af1cd67b *: Support NewTableDual and handle some new plans when their srcs are nil (#1329)
* *: support NewTableDual and handle some new plans' srcs are nil
2016-06-20 11:40:54 +08:00
b8bf59592f executor: implement ANALYZE TABLE (#1327) 2016-06-20 11:13:16 +08:00
1a706853ed Rename err2 to err1 where possible (#1331) 2016-06-19 08:33:33 +08:00
a4ce312d4b *: Push down where in newTableScan (#1320)
* *: tiny clean up

* *: push down where
2016-06-15 19:48:08 +08:00
67378982bf parser: add ANALYSE TABLE syntax (#1323) 2016-06-15 16:21:39 +08:00
921677399e Hanfei/apply (#1318)
add apply operator.
2016-06-15 15:23:05 +08:00
39dee36f0b tikv: Enable distributed agg function FirstRow (#1319) 2016-06-14 15:10:13 +08:00
5b2794904b *: Support xapi first row aggregate function in local store. (#1317) 2016-06-14 13:01:25 +08:00
ce2378bddf *: Refactor dist-agg partial result data layout (#1314)
Make result more compact.
2016-06-13 14:52:05 +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
e953dee8bb *: Enable distributed count with TiKV (#1312)
Push down count to TiKV
2016-06-13 10:09:09 +08:00
9ec42dbc4c *: Tiny clean up (#1303)
* *: rename DbName to DBName and fix plan shadows.
2016-06-08 16:33:41 +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
f3a0f1af78 executor: fix adapter statement. (#1292)
Implements `OrgionText`, 'SetText` and 'IsDDL`.
2016-06-06 11:35:07 +08:00
f9c31d9130 Hanfei/rewrite plan (#1272) 2016-06-01 13:12:55 +08:00
a05f3fde6d *: fix decimal fraction value. (#1271) 2016-05-31 10:29:02 +08:00
08bfa2f423 executor: Increase XTableScan default concurrency from 1 to 10 (#1269) 2016-05-30 16:56:32 +08:00
f09574d826 *: support sql mode (#1263) 2016-05-30 13:16:41 +08:00
86fe54dadc *: Fix issue 1118 (#1259)
* *: fix issue 1118
2016-05-26 12:49:43 +08:00
d3cb90559b *: change Context method FinishTxn to CommitTxn and RollbackTxn. (#1253)
Makes it easier to read.
2016-05-24 13:17:01 +08:00
622f8fca2a *: refactor, move index and column into table package. (#1251) 2016-05-24 11:08:15 +08:00
965e704412 executor: makes dirty table supports XAPI. (#1245) 2016-05-24 10:53:17 +08:00
a98ecf8907 optimizer/plan: fix join panic (#1246)
* optimizer/plan: fix join panic
2016-05-23 15:37:10 +08:00
e22d8d06da *: xapi push down mysql.Duration and mysql.Decimal. (#1243) 2016-05-20 18:30:30 +08:00
4f840a7754 *: Tiny clean up (#1244)
* *: Tiny clean up

* optimizer: update test
2016-05-20 12:59:01 +08:00
228f1d7026 support hash join in new plan (#1234)
* support hash join.

* fix some errors

* add test for predicate push down

* change substitutor...

* add bench mark

* change comment

* fix bug.
2016-05-19 15:43:16 +08:00
cf6d1f5f97 *: do not set null column value to save storage space. (#1236) 2016-05-17 19:14:28 +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
f8d7a3c5ef *: Fix unsigned int as PKColumn bug (#1238)
* *: Fix unsigned int as PKColumn bug
2016-05-17 14:41:11 +08:00
a9cb8eecb4 store/localstore: fix local region select table in desc order. (#1222)
* store/localstore: fix local region select table in desc order.
2016-05-16 11:49:44 +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