Commit Graph

868 Commits

Author SHA1 Message Date
cb7b400995 expression, executor: rewrite builtin function MD5 (#3673) 2017-07-10 10:48:28 +08:00
9ff2fbae67 refactor builtin string function ord (#3671) 2017-07-09 11:46:10 +08:00
3dede36c84 expression, executor: rewrite builtin func log2 (#3653) 2017-07-08 20:28:46 +08:00
0c3e6f4e12 expression, executor: rewrite builtin func degrees (#3642) 2017-07-08 13:39:42 +08:00
8d0f718e56 expression, util: 1. refine castStrAsReal 2. cast use new architecture (#3629) 2017-07-06 14:41:33 +08:00
91f08579b6 expression, executor: rewrite builtin func Sin (#3609)
* builtin-Sin

* builtin-Sin add test

* Fix tp.Flen

* add valid string input argument test

* Nothing changed

* fmt code

* fix comment
2017-07-05 13:42:15 +08:00
760bdc9d5b expression, executor: rewrite builtin func Cos (#3607) 2017-07-05 13:03:42 +08:00
623ac1ffb0 expression, executor: rewrite builtin func tan (#3621) 2017-07-05 10:56:41 +08:00
fc161459b3 expression, executor: rewrite builtin strcmp function (#3559) 2017-07-05 10:36:24 +08:00
6135cabb3d *: tikv.NewMockTikvStore API refactor (#3573) 2017-07-04 20:51:21 +08:00
900fa9fbb9 expression:rewrite password using new expression evaluation architecture (#3593) 2017-07-04 17:48:11 +08:00
0dd049d9b2 [expression] rewrite built-in string function: REPEAT (#3546)
* expression, executor: rewrite builtin func repeat

* expression, executor: rewrite builtin func repeat, remove unnecessary non-binary flag settings

* only cover retType in ScalaFunction when builtin function's retType is not mysql.TypeUnspecified

* add test cases in executor_test.go for built-in udf REPEAT
2017-06-30 14:09:29 +08:00
284ac94a69 expression, executor: fix unhex(binary) error (#3569) 2017-06-29 18:07:37 +08:00
4c3be8a9ad *: Support retrun the error of ErrNoDB (#3572) 2017-06-29 17:41:58 +08:00
e4b761071c expression, executor: fix hex(binary) (#3567) 2017-06-29 16:43:51 +08:00
b780d6afef plan: flatten row op row (op = GE, GT, LE, LT) in expression_rewriter (#3528) 2017-06-29 13:55:21 +08:00
b5e6c0291a plan, executor: fix multi-update. (#3531)
* plan, executor: make multi-update be compatible with MySQL.
2017-06-28 13:53:06 +08:00
88189ab961 executor, expression: refine substr handle null (#3555) 2017-06-27 22:12:13 +08:00
8aa1a632ea expression, executor: rewrite the builtin func ascii using new methods (#3537) 2017-06-27 14:47:48 +08:00
11a1767e71 *: Get ddl owner ID (#3525) 2017-06-27 11:24:50 +08:00
4db09e0940 expression, executor: rewrite built-in func makeDate using new expression evaluation architecture (#3533) 2017-06-23 15:52:36 +08:00
f331160eb9 expression, executor: rewrite built-in func length using new expression evaluation architecture (#3519) 2017-06-22 15:56:22 +08:00
379914a5af *: fix timestamp column data and index inconsistent involving timezone (#3497) 2017-06-20 15:22:50 +08:00
913037ebb9 tablecodec,mysql, util: mysql TypeDuration Fsp (#3499)
Fixed RoundError issue #3471
Bug Cause:
1. when deserialize mysqlDuration, the Fsp is setted with 0 instead of the Fsp from column information.
2. the default decimal for column with TypeDuration is 0.
2017-06-20 11:10:40 +08:00
c15265e95b *: rewrite concat using new expression evaluation architecture (#3479) 2017-06-19 15:40:16 +08:00
cb9bf47dfc executor: turn on new expr evaluation for testSuite (#3475) 2017-06-15 15:27:40 +08:00
0343dac8e7 plan: forbidden modify generated column by insert/update. (#3434) 2017-06-14 16:08:14 +08:00
233513ec5f executor: set statsLease to 0 (#3435) 2017-06-09 10:13:42 +08:00
72981fdbbd DDL: add two limits for JSON column: used as key and not null default value. (#3401) 2017-06-08 13:52:12 +08:00
eb2b32ee86 executor: validate snapshot TS (#3416) 2017-06-08 13:33:12 +08:00
a623135bae *: add cast(value as JSON) support. (#3395) 2017-06-07 19:58:27 +08:00
757953632b store/tikv: write read-only select for update locks (#3402) 2017-06-06 01:29:33 -05:00
7b6e4475b3 variable: add a varaible to read current timestamp (#3400) 2017-06-06 07:27:30 +08:00
62450b9024 Use etcd to speed up DDL process
Add the mock owner-manager and schema-syncer and enable using etcd to speed up DDL process by default.
2017-06-04 10:00:41 +08:00
6962814a29 add json_type function and compare json with primitive types. (#3307) 2017-05-24 15:21:40 +08:00
26ee3cc2e5 executor: fix data race. (#3284) 2017-05-17 19:27:20 +08:00
1e4bf4775c document store: add JSON type and codec. (#3248)
Document store: add JSON type and codec.

The JSON binary representation is same with MySQL 5.7. we prefer
this not bson because 1) bson only supports JSON compound types
but not JSON primitive types, and 2) this representation is better
than bson on random access.

This PR now can support these  statements:
```
CREATE TABLE t (a json_field);
INSERT INTO t (a) values ('{"a": "b"}');
SELECT * FROM t;
```

JSON codec uses MySQL 5.7 compatible format, which doesn't support use JSON field as key or index. We will limit this in tidb later.
2017-05-17 12:00:34 +08:00
e7257d0e9d plan, executor: open the new plan switch for all test. (#3274) 2017-05-16 20:40:12 +08:00
c5e864539f executor: fix some bugs about new plan. (#3231) 2017-05-10 16:32:00 +08:00
0d6490efc4 *: interpret timestamp datum based on session's time_zone (#3167)
1. FromPackedUint don't consider time_zone any more, moved to Unflatten
2. use session's time_zone instead of time.Local
3. add a time.Location parameter to some Encode/Decode functions in tablecodec
2017-05-08 11:58:55 +08:00
cc3676abc0 *: fix aggregation bug in new plan. (#3210) 2017-05-05 13:37:06 +08:00
d128a10fad plan, executor: implement index look up executor. (#3204)
index look up executor implements index double reading. we reuse the concurrency algorithm in old index executor.
2017-05-04 21:33:36 +08:00
67c62b3b39 *: make string in select result convert to bit correctly. (#3188) 2017-05-03 14:14:09 +08:00
dbcab85ba6 *: support index reader executor. (#3175) 2017-05-03 10:58:55 +08:00
20be357e86 expression: fix buildin function found_rows() (#3134)
fix issue #3131.
2017-05-02 11:40:10 +08:00
858d76bbe3 executor: fixed comments warning. (#3187) 2017-05-01 19:19:32 +08:00
b4f20e6f0b util/testkit: refine testkit (#3177) 2017-04-29 23:20:49 +08:00
a9a33b0209 fix typo (#3179) 2017-04-29 00:24:27 +08:00
ea310f614c executor, store: let old plan use old store. (#3160) 2017-04-27 20:50:10 +08:00
350c79382a *: support new table reader executor. (#3133) 2017-04-27 13:27:26 +08:00