Commit Graph

170 Commits

Author SHA1 Message Date
622f8fca2a *: refactor, move index and column into table package. (#1251) 2016-05-24 11:08:15 +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
f8d7a3c5ef *: Fix unsigned int as PKColumn bug (#1238)
* *: Fix unsigned int as PKColumn bug
2016-05-17 14:41:11 +08:00
e742def024 add foreign key on update and on delete support (#1152)
* add foreign key on update and on delete support
2016-04-27 19:44:00 +08:00
36ef582b93 perfschema: fixed concurrent map bug (#1160) 2016-04-26 13:06:59 +08: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
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
c26dfd54e4 executor: Change interface to datum in executor. (#1103)
Change interface to datum in executor.
2016-04-20 09:52:23 +08:00
64546d478b perfschema: fixed memory leak issue (#1099) 2016-04-18 06:17:35 -05:00
dc8bd3e337 *: optimization, do not read not referenced columns. 2016-04-06 13:29:21 +08:00
xia
7a7026e750 *: add a null kind judgment in the update statement and update comments 2016-03-18 14:29:57 +08:00
xia
0c5e7eb776 table: update comments 2016-03-18 12:23:55 +08:00
xia
15c0319294 *: fix issue 962 and handle other questions about auto increment. 2016-03-18 12:23:55 +08:00
cd0a3dbe03 *: add Rebase interface and add tests 2016-03-10 15:13:18 +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
3d06fb90fe *: replace interface{} with Datum in kv.Index 2016-03-03 11:41:09 +08:00
d5941446c2 table: replace interface{} with Datum in table. 2016-03-02 21:01:20 +08:00
3a25f68469 *: replace interface with Datum in ast.Row. 2016-03-02 15:32:42 +08:00
43a6064395 *: Cleanup license 2016-03-02 14:02:26 +08:00
043ebd5ec8 *: Refactor package organization
1. Move evaluator from optimizer to root dir.
2. Move builtin from expression to evaluator.
3. Remove expression package.
2016-03-02 13:48:22 +08:00
b5fbabc05e *: Remove plan.go/stmt.go/rset.go
Move interface into ast and remove interfaces.
2016-03-01 13:53:48 +08:00
3cc6bf035f table/tables: use red black tree to implement memory table. 2016-02-25 11:41:49 +08:00
cc298dd6ea Merge remote-tracking branch 'origin/master' into shenli/newplan-info 2016-02-21 22:23:30 +08:00
8c7516324d Merge branch 'shenli/dev-info' into shenli/newplan-info 2016-02-21 11:49:50 +08:00
9997e7f46d *: Use memory table to implement Information_Schema 2016-02-20 21:53:43 +08:00
b47cf737c8 *: add Table.Seek method and use handle for RowKeyEntry.
Avoid calling `table/tables` methods in `executor`, makes `Table` interface independent.
2016-02-19 14:31:04 +08:00
ec475aae5f *: simplify 'table.Table` interface.
Makes it easier to implement a in-memory table.
2016-02-18 20:58:53 +08:00
f0326086aa parser/coldef: remove dependency on expression. 2016-02-17 14:12:08 +08:00
xia
807531c256 table: address comments 2016-01-11 09:55:38 +08:00
xia
d7fecbdbea *: address comments 2016-01-06 17:34:08 +08:00
xia
f4dece1cab table: update RowWithCols and add test 2016-01-06 15:09:45 +08:00
d8a6a9385c tables: Address comment and refactor AddRecord methord 2016-01-05 18:03:01 +08:00
aca48efaf5 *: Show key content in DuplicateEntry error message
Fix: https://github.com/pingcap/tidb/issues/822
2016-01-05 13:54:26 +08:00
926fbab7c9 *: address comment, add more tests. 2015-12-31 12:01:06 +08:00
e882caf8ff *: Unify PK and handle Phase2
Support table range scan.
Avoid creating PK handle index.
2015-12-29 22:40:10 +08:00
fca76e816c *: address comment. 2015-12-29 10:17:43 +08:00
c4e18bb422 Merge branch 'master' into coocood/pk-handle
Conflicts:
	plan/plans/index_test.go
2015-12-29 09:59:54 +08:00
bd3681ec0e *: minor changes 2015-12-28 12:49:26 +08:00
2bb206fbc9 table/tables: use types.ToInt64 2015-12-26 22:03:32 +08:00
c3bdfb1fed stmt/stmts: insert use primary key value as record ID 2015-12-25 21:02:52 +08:00
48c8b75edb *: reduce string bytes convert 2015-12-25 20:52:36 +08:00
75a7b8b0d9 Merge pull request #793 from pingcap/shenli/kv-error
*: Move kv errors to kv package
2015-12-25 19:25:10 +08:00
87d007d234 *: Move kv errors to kv package 2015-12-24 13:34:03 +08:00
xia
c5ba66c4cf Merge branch 'master' into zimuxia/update-inspectkv 2015-12-22 10:11:35 +08:00
67ad875a29 *: Convert ErrKeyExists to MySQL error 2015-12-17 23:56:16 +08:00
xia
9f3ca1c62c Merge branch 'master' into zimuxia/update-inspectkv 2015-12-17 12:16:34 +08:00