Commit Graph

139 Commits

Author SHA1 Message Date
f02a615bed expression: remove useless error return (#4347) 2017-08-28 20:34:30 +08:00
024d4dde20 expression: fix a bug when datum.kind is not consistent with expression.type (#4269) 2017-08-21 20:38:46 +08:00
6733b6f75b expression: rewrite builtin function: NULLIF (#4170)
* rewrite nullif() to if()
2017-08-15 17:19:39 +08:00
56cb978587 expression, plan: rewrite builtin function: IF (#4137) 2017-08-11 19:43:06 +08:00
c51d0f57ed *: support JSON in new expression architecture (#4089) 2017-08-10 15:56:53 +08:00
5077f46036 expression: rewrite builtin function: COMPRESS, UNCOMPRESS, UNCOMPRESSED_LENGTH (#4095) 2017-08-09 20:56:53 +08:00
f0fd27c5b5 expression: rewrite builtin function: SLEEP (#4096) 2017-08-09 19:37:17 +08:00
3c11ac5128 *: fix race with atomic global variables. (#4076)
* fix race.
2017-08-08 14:30:04 +08:00
85b0155f85 expression: fix EvaluateExprWithNull when meet cast(#3873) (#3875) 2017-07-25 21:16:34 +08:00
71773cf33c *: change "AndAnd", "OrOr" to "LogicAnd", "LogicOr" respectively (#3874) 2017-07-25 15:53:02 +08:00
8ebe4c2549 plan, executor, expression: refactor explain (#3809) 2017-07-25 14:12:48 +08:00
8d0f718e56 expression, util: 1. refine castStrAsReal 2. cast use new architecture (#3629) 2017-07-06 14:41:33 +08:00
f331160eb9 expression, executor: rewrite built-in func length using new expression evaluation architecture (#3519) 2017-06-22 15:56:22 +08:00
6f1bc82bc0 expression: wrap arguments when new built-in function (#3520) 2017-06-22 11:56:24 +08:00
703f7045e3 expression, plan: add switch for new expression evaluation architecture (#3438) 2017-06-12 14:27:06 +08:00
895a35415d expression: implement wrap Expression with cast functions (#3419) 2017-06-09 17:27:02 +08:00
ed2555a0ef *: add GetTypeClass() function for Expression interface (#3321) 2017-05-25 14:39:03 +08:00
06ec635583 expression, util: rewrite IsHybridType func (#3319)
rewrite IsHybridType func and move it from package util to expression
2017-05-24 22:06:51 +08:00
6dbff6149a expression: add castXXAsXXSig (#3329) 2017-05-24 17:58:42 +08:00
fb75f5a1c6 expression, util: implement new cast built-in function signatures (#3266) 2017-05-23 15:43:52 +08:00
ffee89b429 expression: add EvalDuration/EvalTime for expression (#3278) 2017-05-17 12:34:58 +08:00
d6ec37bb42 expression, util: refactor type resolver using new design (#3247) 2017-05-12 13:56:43 +08:00
33c2262b9e *: assign RetType for Constant/Column (#3201) 2017-05-05 12:01:01 +08:00
31314690a9 expression: remove baseExpr struct (#3202) 2017-05-03 16:15:53 +08:00
d1876810e3 expression: add EvalXXX functions for Constant and Column (#3128) 2017-05-03 15:17:06 +08:00
c646b59927 *: fix data race in join. (#3159) 2017-04-27 23:26:15 +08:00
b08ad4069a expression: add interfaces for refactoring typeinferer (#3094) 2017-04-26 09:53:29 +08:00
ee312bfd71 expression: Fix code style according to goword (#3123)
ref https://github.com/pingcap/tidb/issues/3120
2017-04-25 23:35:45 +08:00
7699d3fb76 *: refine EvalBool function. (#3139) 2017-04-25 22:07:17 +08:00
904101210b executor: fix decode row panic (#2961)
Index Schema may be replaced by aggregation schema, which may be longer than
original schema length, in this case decode row will panic.
2017-03-30 13:15:04 +08:00
da52b47c39 expression: make values function underministic. (#2753) 2017-02-28 15:07:03 +08:00
1c01055496 plan: add Contains function on Schema (#2588)
Improve readablity.
2017-02-04 14:25:12 +08:00
e68dcf77dc *: remove ctx from function args. (#2566) 2017-01-28 18:44:02 +08:00
461fd98bb0 *: rename the plan interface. (#2547) 2017-01-25 15:10:44 +08:00
fb429408c9 *: make schema as a pointer. (#2533) 2017-01-23 16:23:47 +08:00
96ee4446e3 *: refactor function. (#2499) 2017-01-22 18:10:38 +08:00
f145a32063 *: refactor apply plan and executor. (#2411) 2017-01-22 11:06:17 +08:00
52c267959b expression: refactor rest functions. (#2416) 2017-01-09 23:53:46 +08:00
1dd0945cf3 *: add unique key info into schema (#2376) 2017-01-06 17:36:39 +08:00
042280e1bf expression: add baseFunctionClass (#2361) 2017-01-03 11:21:14 +08:00
a28ab3eb73 *: add GetArgs interface (#2343) 2016-12-29 19:10:01 +08:00
7c87b92468 *: Use standard error code/message for incorrect function argument count error (#2335)
* *: Use standard error code/message for incorrect fuction argument count
error
2016-12-28 14:57:39 +08:00
5f96f67cbc *: change schema from []*Column to struct (#2321) 2016-12-27 14:02:19 +08:00
453a95ce8c *: merge packages of evaluator and expression. (#2322) 2016-12-26 12:35:29 +08:00
26e5c0c867 *: move evaluator's helper to expression package. (#2291) 2016-12-23 11:34:52 +08:00
a89fa8a8d3 *: refact insert logic (#2252) 2016-12-20 17:38:23 +08:00
35edefb757 *: rewrite the logic of set. (#2223) 2016-12-12 17:54:16 +08:00
74a1c9935d *: add StatementContext argument to functions. (#2157)
Add StatementContext argument to more functions where it is needed.
2016-12-02 23:28:11 +08:00
0b828d46f8 *: add context in baseplan, extract constant folder. (#2135) 2016-12-01 00:17:55 +08:00
3683d5f950 plan & expression: split the logic of column pruning and indices resolving. (#2051) 2016-11-23 18:01:27 +08:00