Commit Graph

921 Commits

Author SHA1 Message Date
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00
7cdbcebec0 executor: fix a order by bug (#4470) 2017-09-07 23:44:38 -05:00
0e438de9ff *: move sample collector from executor to stats (#4468) 2017-09-08 12:21:10 +08:00
fc209cb1df *: rewrite hex and bit literals (#4415) 2017-09-07 16:28:24 +08:00
dba58e97fc executor: IndexLookUpExecutor refactor (#4305) 2017-09-06 03:45:10 -05:00
c1384a26b7 executor, types: format output (#4418) 2017-09-06 16:00:03 +08:00
0b04d1c6c7 expression: rewrite builtin JSON functions under the new framework. (#4367) 2017-09-06 14:42:35 +08:00
a8af81385c should use bytes.Equal(rows[i-1].key, rows[i].key) instead (#4446) 2017-09-06 12:51:07 +08:00
7fb7263678 Optimize merging array elements (#4444) 2017-09-06 12:38:24 +08:00
e7e40193f9 distsql,store/tikv: fix analyze table OOM (#4399) 2017-09-05 20:56:44 +08:00
952aafd403 *: Add operation of admin show ddl jobs (#4316)
* *: implement "admin show ddl jobs"
2017-09-05 13:07:51 +08:00
bc0efef751 executor: Fix DEFAULT output in SHOW CREATE TABLE (#4427) 2017-09-05 09:20:16 +08:00
3f773bad90 plan: fix bug when push topn down. (#4413) 2017-09-04 17:10:24 +08:00
ae30c4dcbc support "UPDATE IGNORE", update conflicts generate warning (#4397) 2017-09-04 11:13:18 +08:00
a68d3ad1ee executor: "INSERT IGNORE" generate warnings for duplicate-key error (#4381) 2017-08-31 14:29:28 +08:00
87baaaf73e plan: fix bugs when do natural join or join with using. (#4382)
* plan: fix bug when do natural join or join with using.
2017-08-31 10:06:32 +08:00
46c1a0e3c3 support INSERT IGNORE with strict sql mode produces warning instead of error (#4376)
* fix infoschema not support unsigned
2017-08-30 17:02:35 +08:00
271f0c0338 executor, types: format output (#4372)
Escape special chars and handle quote marks.
2017-08-30 10:34:50 +08:00
09b5ddcea9 executor: index join key should be encoded comparable. (#4363) 2017-08-29 19:31:58 +08:00
29cf5d92c0 executor: fix batch insert on duplicate key (#4344) 2017-08-28 18:42:37 +08:00
ea29a1c30d expression: Support more types when getting default flen and decimal (#4236) 2017-08-28 02:26:07 -05:00
9367fdddd4 show column comment, table auto-increment; change index default collation (#4303)
* - 1. change index default collation from "utf8_bin" to "A".
- 2. show column comment. fix #4224.
- 3. show table auto-increment. fix #3747.
2017-08-26 17:45:03 -05:00
45a95157b4 executor, plan: fix a bug occurred in set @varname = (select a from t limit 1) (#4326)
* fix infoschema not support unsigned

* change the comment of FieldType's InfoSchemaStr for specification

* fix issue #4302

* use mockPlan instend of process subquery directly

* add test case for issue #4302
2017-08-26 17:15:01 +08:00
6c44eb6eee *: fix bug of union type cast (#4322) 2017-08-26 15:24:52 +08:00
21a417ad65 executor: make auto analyze more conservative (#4284) 2017-08-24 20:25:50 +08:00
881d76840b plan,executor: calculate generated columns in CRUD. (#3951) 2017-08-23 14:52:43 +08:00
ff34a46446 store/tikv: implement MVCCStore interface using leveldb backend (#3970) 2017-08-22 03:48:42 -05:00
3e0bfbe91a plan: rewrite index join plan generation. (#4274) 2017-08-22 12:29:02 +08:00
3f8334e188 *: provide SHOW PLUGINS statement with a dummy implementation (#4278) 2017-08-22 10:58:47 +08:00
fce58065d7 parser,plan,ast: fix #4239, concatenates string literals which placed each other, and use first string as projection name (#4252) 2017-08-21 12:37:27 +08:00
31edc09341 Add a system variable to enable automatic split delete data into batches. (#4256)
* *: Batch delete data
2017-08-21 10:37:24 +08:00
ae512b3e3e plan: reopen join reorder for new planner. (#4242) 2017-08-20 17:26:42 +08:00
5ac8210e6d executor: clean code. (#4244) 2017-08-19 04:27:39 -05:00
3e1728b4b8 plan: let union plan not change the original type. (#4235) 2017-08-18 20:00:01 +08:00
7c273c0f29 *: implement auto analyze (#4141) 2017-08-18 18:42:28 +08:00
43215118af *: support time constant push down in mocktikv (#4176) 2017-08-18 14:15:41 +08:00
f5fd467f46 *: change terror.ErrorEqual to Error.Equal, which is more effetive (#4217) 2017-08-17 20:06:48 +08:00
2750de80bc *: tiny clean. (#4222) 2017-08-17 19:38:37 +08:00
a264f81acc executor: notify fetch goroutines to exit when IndexLookUpExecutor close (#4201) 2017-08-17 13:50:01 +08:00
e5ea06dec8 executor, plan: union scan reuse pk when it's handle. (#4185) 2017-08-17 13:07:51 +08:00
44a7e900cd *: set default length for some types (#4200) 2017-08-16 15:56:34 +08:00
b6c65888ba expression: rewrite builtin function: INET_ATON, INET_NTOA, INET6_ATON, INET6_NTOA (#4130)
* rewrite builtin ip functions
2017-08-15 12:39:01 +08:00
a88ebb1cf6 *: use structure to store user identity (#4078)
*: use structure to store user identity
2017-08-14 03:37:36 -05:00
678c6924be *: support priority for SELECT HIGH_PRIORITY statement (#4119)
*: support priority for SELECT HIGH_PRIORITY statement
2017-08-10 01:09:57 -05:00
3991f38cd0 executor: fix statement label and recover test (#4116) 2017-08-09 23:30:47 +08:00
f0fd27c5b5 expression: rewrite builtin function: SLEEP (#4096) 2017-08-09 19:37:17 +08:00
c7c248eb91 executor: change struct row to []types.Datum (#4072) 2017-08-09 18:37:57 +08:00
973565e29a domain: Fix the correctness issues after using etcd to sync schema version (#4073) 2017-08-09 17:09:52 +08:00
1eebb87156 ddl: remove backgroud worker, use delete-range to speed up something. (#3993) 2017-08-09 16:59:25 +08:00
861c8c9beb plan: fix a bug when prune extra handle column (#4079) 2017-08-08 21:46:56 +08:00