Commit Graph

8026 Commits

Author SHA1 Message Date
02aa7874d0 tablecodec: Add EncodeRow and DecodeRow (#1341)
Add EncodeRow and DecodeRow
2016-06-23 15:39:49 +08:00
1f080550fb support dirty transaction. (#1339)
support dirty transaction.
2016-06-23 14:10:37 +08:00
633b5b9a9a *: Clean up tablecodec and tables (#1338) 2016-06-22 17:11:54 +08:00
ee1bdd699a *: Cleanup table codec (#1337)
Prepare for row-based storage model
2016-06-22 15:24:56 +08:00
b95c6c96a6 tables: Remove duplicate codes (#1336)
Use tablecodec.Unflatten
2016-06-22 14:23:26 +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
b3bd0dce4d *: add builtin string function SPACE (#1332) 2016-06-21 15:45:26 +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
5c886455a0 Fix go vet shadow (#1330)
* Fix go vet shadow
2016-06-18 12:36:17 +08:00
6c0efb69bc store/tikv: update conn pool. (#1328) 2016-06-17 14:31:58 +08:00
fcfc5a7a74 plan: Add constant expression to access conditions (#1325)
* plan: add constant expression to access conditions
2016-06-17 11:18:44 +08:00
1e4eb0e91a plan/statistics: Add Statistics types. (#1322) 2016-06-16 19:02:23 +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
d7f9f6fb3c Fix misspelling of different in comment (#1321) 2016-06-15 13:04:19 +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
991428a998 perfschema: Add some missing stmt to prevent perfschema warning log (#1313) 2016-06-13 10:05:25 +08:00
99e3071c42 move position of rewriter. (#1310) 2016-06-12 14:43:58 +08:00
241bd7754c *: rename aggrMap to aggMap and handle error (#1309) 2016-06-12 13:52:17 +08:00
06b2eb6518 *: Update docs (#1308)
Remove hbase related docs
2016-06-10 12:16:46 +08:00
df13833cb9 store/tikv: fix async commit issue. (#1305) 2016-06-08 21:28:58 +08:00
aebe108c52 store/tikv: support parallel && retry for batchGet. (#1304)
* store/tikv: support parallel && retry for batchGet.
2016-06-08 17:34:35 +08:00
9ec42dbc4c *: Tiny clean up (#1303)
* *: rename DbName to DBName and fix plan shadows.
2016-06-08 16:33:41 +08:00
302295ecf5 store/tikv: add retry for tso and adjust configs. (#1302)
* store/tikv: add retry for tso and adjust configs.
2016-06-08 15:27:47 +08:00
5846fc3ee0 store/tikv: parallel commit. (#1290)
* store/tikv: parallel commit.

* store/tikv: commit && cleanup asynchronously.
2016-06-08 15:19:08 +08:00
c6637049ab plan: alloc plan ID in builder (#1301)
Avoid race condition.
2016-06-08 11:29:08 +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
d9569a6801 *: Support date_format (#1295)
* *: support date_format

* evaluator: update yearweek function
2016-06-06 18:49:06 +08:00
f3a0f1af78 executor: fix adapter statement. (#1292)
Implements `OrgionText`, 'SetText` and 'IsDDL`.
2016-06-06 11:35:07 +08:00
7330427b19 store/tikv: use rbtree for cache region search (#1285)
* store/tikv: speed up GetRegion

* store/tikv: use rbtree for region cache.
2016-06-04 15:12:29 +08:00
b5b80e2202 Makefile: Automaticly make parser before make server (#1288) 2016-06-04 13:02:17 +08:00
2631d50741 *: Add retry attempts into txn (#1284)
* *: Add retry attempts into txn
2016-06-03 17:37:41 +08:00
0373895334 *: Support time (#1282)
* *: support time
2016-06-02 10:48:09 +08:00
75f089d056 util/types: clean up, removed unused code. (#1281) 2016-06-02 10:42:36 +08:00