Commit Graph

961 Commits

Author SHA1 Message Date
c2691114b4 *: check errors part 2 (#4704) 2017-10-09 12:46:45 +08:00
1c99d41ca2 expression: Quit builtin function SLEEP when KILLed. (#4708) 2017-10-08 21:12:36 -05:00
665f62929d *: make "unconvert" happy (#4700) 2017-09-30 15:53:01 +08:00
56ed7f129d expression: change like function's behavior. (#4683) 2017-09-29 10:27:23 +08:00
07e8911628 *: reduce growslice (#4680) 2017-09-28 18:00:32 +08:00
1c4143e9e4 expression, types: remove the useage of "evalExprToXXX" functions (#4666) 2017-09-27 23:42:00 +08:00
baee1bb864 expression, types, plan: remove the usage of "TypeClass" completely (#4654) 2017-09-27 12:39:44 +08:00
7943d0e843 expression, types: remove the usage of "TypeClass" in "builtin_compare.go" (#4649) 2017-09-26 23:33:56 +08:00
f89db5b6ec expression, types: export "evalTp" to "EvalType" and move it to package "types" (#4626)
* expression, types: export "evalTp" to "EvalType" and move it to package "types"

* add source file

* change "ETJSON" to "ETJson"
2017-09-26 11:25:27 +08:00
6f84392d40 *: optimize SortExec (#4622)
* *: change key of orderByRow from "key []types.Datum" to "key []*types.Datum"

* address comment
2017-09-25 19:50:26 +08:00
e599ceec2b types: fix 'select cast(12.1 as decimal(3,4))' core. (#4612) 2017-09-24 21:17:17 +08:00
a60bbd9560 expression: refactor "helper.go" (#4593) 2017-09-22 18:54:04 +08:00
376a7ddbdd util/types,expression: fix parseDatetime for 11111111111 and 20170118.999 (#4273) 2017-09-21 14:55:05 +08:00
7c3cc87042 session_test: move index-prefix test (#4587) 2017-09-21 10:58:32 +08:00
fe31f4b597 plan,statistics: don't forget to close domain in testing (#4591) 2017-09-20 21:42:25 +08:00
c9e17e8317 plan: wrap CAST on generation expressions. (#4501)
* plan: wrap CAST on generation expressions.
2017-09-20 19:49:34 +08:00
c92b124aa9 *: make test leak great again (#4543) 2017-09-20 17:07:32 +08:00
1c653f7168 *: move tests. (#4524) 2017-09-14 19:49:01 +08:00
27f2594f31 expression: rewrite builtin function: ADDDATE, SUBDATE (#4504) 2017-09-14 19:16:37 +08:00
b812f324c3 expression: rewrite builtin function TIMEDIFF (#4496) 2017-09-14 15:45:04 +08:00
Jay
30810c7753 expr: fix pattern compilation (#4508) 2017-09-13 20:21:35 +08:00
959db2b835 *: rewrite builtin function GREATEST, LEAST (#4476) 2017-09-13 18:44:09 +08:00
3245d49317 util/goroutine_pool: add a goroutine pool package utilities (#3752) 2017-09-12 02:44:28 -05:00
4295780cae *: rewrite builtin function ROW && remove Datum.KindRow (#4480) 2017-09-11 23:57:21 +08:00
bc0f2d4755 util/systimemon: fix test race (#4494)
* util/systimemon: fix test race
2017-09-11 19:39:18 +08:00
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00
1be6d2478f expression,util/types: update time Add() implementation (#4267) 2017-09-08 00:17:15 -05:00
fc209cb1df *: rewrite hex and bit literals (#4415) 2017-09-07 16:28:24 +08:00
f380a746c9 expression: rewrite builtin function: EXTRACT (#4456) 2017-09-07 15:48:45 +08:00
9f040b850c expression: rewrite builtin function: INTERVAL (#4421) 2017-09-07 00:02:49 +08: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
e3cbcad807 should use time.Since instead of time.Now().Sub (#4445) 2017-09-06 12:15:24 +08:00
e7e40193f9 distsql,store/tikv: fix analyze table OOM (#4399) 2017-09-05 20:56:44 +08:00
75230f9f1d types, plan: return ErrInvalidDefault when date type column option of create table statement has a now() default value (#4430) 2017-09-05 17:02:47 +08:00
778b221d2e Support client specified collation (#4409) 2017-09-05 10:08:30 +08:00
f3134bede9 codec: use reference instead of value copy of "[]types.Datum" (#4408) 2017-09-04 11:30:47 +08:00
e6985a2f0f expression, types: add NumberToDuration function, use it when cast int as duration, and check whether date is zero and returns error. partically fix #4340 (#4387) 2017-08-31 15:24:51 +08:00
2ae9abefad expression: partial fix #4340, support date time format when parse duration (#4380) 2017-08-30 19:43:42 +08:00
271f0c0338 executor, types: format output (#4372)
Escape special chars and handle quote marks.
2017-08-30 10:34:50 +08:00
e6283e9fc6 parser: fix #4354, support empty bit-value literal syntax b'' (#4370) 2017-08-30 10:03:34 +08:00
c50bfbce0b *: rewrite builtin function: STR_TO_DATE (#4357) 2017-08-30 08:30:57 +08:00
62c8d39d93 expression: fix float literals and binary literals (#4365) 2017-08-29 06:44:52 -05:00
c9b62fbdda expression: add json into builtin if function. (#4203) 2017-08-29 17:32:10 +08:00
71694b0597 types: fix EvalDuration not support time format in int #4341 (#4349) 2017-08-29 00:09:17 +08:00
ea29a1c30d expression: Support more types when getting default flen and decimal (#4236) 2017-08-28 02:26:07 -05:00
882f341db1 types: remove useless code in datum.go (#4335) 2017-08-28 11:09:30 +08:00
8c6998387a expression, json: fix cast json to other types. (#4265) 2017-08-23 20:16:50 +08:00
31819a8dcb parser, expression: implement builtin function: LAST_DAY (#4290) 2017-08-23 16:34:35 +08:00
8f91590a2b fix: avoid 'binary BINARY' for special field type (#4272)
When parsing DML like 'ALTER TABLE t MODIFY COLUMN a binary', there will
be a node parsed as '... binary BINARY...'. That is wrong, the right result should be '... binary ...'
2017-08-23 09:42:43 +08:00