Commit Graph

56 Commits

Author SHA1 Message Date
6748d3e83e *: add comment for show table status. (#2032) 2016-11-18 19:10:25 +08:00
3738794502 util/types, table: truncate string by rune count, remove UTF8 validation (#1877)
Column length defined in create table should limits the rune count rather than bytes.
And MySQL doesn't return error for inserting invalid UTF8 string, we should not do it.
2016-10-26 20:34:35 +08:00
d04dea2c57 *: use schema diff to reduce memory allocation (#1858)
When schema version has changed, we don't need to reload all schemas, only
modified table need to be reloaded, this will reduce the pressure on Go garbage collector.

Also removed used map in *inforSchema.
2016-10-24 15:17:44 +08:00
3d670c47b0 executor,table: remove LockKeys and Truncate method in Table interface. (#1833)
Those two method should not be defiend in Table, LockKeys should be implemented
In SelectLock executor, Truncate has changed to use DDL operation.
2016-10-18 00:35:45 +08:00
ff1c7b1f0a table: check valid UTF8 value for UTF8 column (#1818)
We need to check if the input data is valid UTF8 string if the column charset is UTF8,
Otherwise, it may cause more serious error in the future, and hard to fix.
2016-10-14 16:00:02 +08:00
2b5d2b15d0 *: Fix mysql_test and make autoid rebase method more efficient. (#1637)
* *: fix mysql_test and more efficient autoid rebase method.
2016-08-25 17:49:51 +08:00
fa06043ce7 More efficient autoid rebase methord (#1631)
Prevent update kv everytime when rebase autoid
2016-08-24 11:18:40 +08:00
d1afacc451 table: export WritableCols (#1369) 2016-07-01 12:55:04 +08:00
cad94acb54 Store row data in single kv pair (#1347) 2016-06-28 11:15:09 +08:00
dd6bfacdb8 *: refactor index, use TableInfo and IndexInfo to create an Index (#1333) 2016-06-21 15:26:20 +08:00
7c7b1b59f5 *: Unify error (#1273)
* *: unify error format in table, server and xapi package

* terror: remove duplicated code
2016-05-31 15:06:11 +08:00
f09574d826 *: support sql mode (#1263) 2016-05-30 13:16:41 +08:00
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
c26dfd54e4 executor: Change interface to datum in executor. (#1103)
Change interface to datum in executor.
2016-04-20 09:52:23 +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
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
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
d5941446c2 table: replace interface{} with Datum in table. 2016-03-02 21:01:20 +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
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
c4e18bb422 Merge branch 'master' into coocood/pk-handle
Conflicts:
	plan/plans/index_test.go
2015-12-29 09:59:54 +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
a90413a656 kv, table: use minimal kv interfaces 2015-12-16 17:22:25 +08:00
xia
d5933690de *: address comments 2015-12-11 19:56:07 +08:00
xia
a78548e8d0 Merge branch 'master' into zimuxia/inspect-kv
Conflicts:
	table/tables/tables.go
2015-12-10 16:55:30 +08:00
xia
8f89c2275e *: use scanning instead of getting the whole data 2015-12-10 16:19:11 +08:00
xia
c120ba8dab *: address comments 2015-12-09 14:51:04 +08:00
7336360a59 *: return error instead of log.Fatal for TableFromMeta 2015-12-09 14:30:38 +08:00
xia
9aca8dc288 *: update IterRecords and RowWithCols 2015-12-09 13:21:25 +08:00
xia
200b35b061 Merge branch 'master' into zimuxia/inspect-kv
Conflicts:
	kv/kv.go
2015-12-09 12:27:01 +08:00
xia
9a348f0a14 inspectkv: support inspect kv 2015-12-09 12:11:24 +08:00
df410c9eb6 *: tiny clean up. 2015-12-08 22:31:49 +08:00
958ce2284f *: tiny refactor table record/index key codec. 2015-12-08 15:35:14 +08:00
7210f23da3 kv, table: fix #463 2015-12-02 13:12:11 +08:00
75352d81a4 Merge branch 'master' into disksing/refactor-lasetinsertid
Conflicts:
	ddl/ddl_test.go
	plan/plans/from_test.go
	session_test.go
	stmt/stmts/insert.go
	stmt/stmts/replace.go
2015-11-27 13:29:51 +08:00
0abfff4664 *: address comments 2015-11-24 10:14:15 +08:00
e1d30ae367 table: remove dependency on 'LastInsertID' 2015-11-23 13:32:34 +08:00
930729a058 Merge branch 'master' into qiuyesuifeng/more-schema-test and fix
conflict.
2015-11-10 17:44:18 +08:00
99212f39fe *: tiny refactor remove record. 2015-11-10 17:16:29 +08:00
229ae62876 *: merge master and fix conflict 2015-11-05 15:02:17 +08:00
695dd29ab4 table: address comment. 2015-11-04 10:33:49 +08:00
2fcd8982fc *: address comments. 2015-11-04 10:28:29 +08:00
6cdbf785c1 *: tiny refacotr tables.UpdateRecord. 2015-11-03 18:01:45 +08:00
7b7f69eedf *: tiny refactor tables.AddRecord. 2015-11-03 17:06:56 +08:00
5b7d18d541 *: Unify behavior of both local store and HBase
Please enter the commit message for your changes. Lines starting

Conflicts:
	kv/index_iter.go
2015-11-03 15:44:35 +08:00
5b4ad54525 *: update insert and replace stmt. 2015-11-02 14:24:37 +08:00