45836a6afe
expression, sessionctx: support rand_seed1 and rand_seed2 sysvar ( #29936 )
2021-11-24 13:35:50 +08:00
8e93dc5edb
expression: fix flen and decimal for ceil, floor, truncate, round ( #29923 )
2021-11-22 18:01:49 +08:00
94e30df8e2
parser: fix compiling, add unit tests ( #28700 )
2021-10-11 23:15:25 +08:00
01e1ceda08
expression, executor: fix license header ( #28050 )
2021-09-15 10:56:42 +08:00
7755d25aba
*: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers ( #27198 )
2021-08-16 18:52:00 +08:00
01a39ae671
expression: fix wrong type inferring for ceiling function. ( #21920 )
2020-12-22 17:03:59 +08:00
8435b28296
expression: fix compatibility behaviors in round() with MySQL ( #21690 )
2020-12-15 15:18:55 +08:00
6cd3c6574b
expression: fix convert number base for hybrid type ( #21554 )
...
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com >
2020-12-09 14:27:17 +08:00
c4a898e5ad
expression: fix runtime error integer divide by zero ( #19398 )
...
* fix runtime error
* fix runtime error
* test for special case
* use int.min
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-25 18:49:21 +08:00
bbc0502038
expression: add warnings for logarithm functions ( #18668 )
2020-08-19 16:41:02 +08:00
b9e90ef614
expression: fix wrong collation and coercibility ( #19169 )
2020-08-13 16:28:49 +08:00
9d391949cd
expression: refactor logic about checking illegal mix collations ( #16866 )
2020-04-29 16:40:56 +08:00
4755a9b9ef
util: revert util/mathutil ( #14744 )
2020-02-13 11:33:04 +08:00
83ab488481
expression: fix implement of rand ( #14565 )
2020-02-04 16:38:53 +08:00
8cbacf0d7c
wasm: fix compile error for wasm ( #14160 )
...
Signed-off-by: 5kbpers <tangminghua@pingcap.com >
2019-12-23 15:17:46 +08:00
964e89379f
implement vectorized evaluation for builtinConvSig ( #14041 )
2019-12-18 23:01:16 +08:00
bb51ebafad
expression: rename RandWithSeed to RandWithSeedFirstGen ( #14001 )
...
Signed-off-by: andylokandy <andylokandy@hotmail.com >
2019-12-10 11:06:26 +08:00
9d582b6066
expression: fixed json type for truncate ( #13064 )
2019-12-04 19:28:12 +08:00
6b9703bc5f
expression: panic in test mode if builtin function's PbCode unspecified ( #13334 )
...
Signed-off-by: Lonng <heng@lonng.org >
2019-11-12 15:31:12 +08:00
4bb68c5f53
expression: implement vectorized evaluation for 'builtinRandWithSeedSig' ( #12644 )
2019-11-06 02:18:33 -06:00
b438bf21f6
expression: give the full error message when the result of calling the exp function is out of range ( #11862 )
2019-08-27 09:35:35 +08:00
f409f0b4cf
expressio: fix data race of rand function ( #11168 )
2019-07-10 17:39:38 +08:00
8d4db9fb0e
expression: refactor builtin function RAND to be compatible with MySQL ( #9387 )
2019-02-22 17:22:09 +08:00
353861fe8f
expression: fix abs push down sign bug ( #8622 )
2018-12-10 10:48:49 +08:00
d9e02b76dd
expression: remove redundant "errors.Trace()" in "expression" package ( #8609 )
2018-12-07 12:20:31 +08:00
32b1dbd8d5
*: rename "github.com/pkg/errors" to "github.com/pingcap/errors" ( #8136 )
...
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
b87b5f0898
expression: refine built-in func truncate to support uint arg ( #8000 )
2018-10-24 15:42:32 +08:00
b3cda9a7dc
expression: fix comments mistake ( #7713 )
2018-09-17 14:28:14 +08:00
cb03f2bec1
move from juju/errors to pkg/errors ( #7151 )
2018-09-12 15:42:20 +08:00
06021c7cfe
remove types.Row interface ( #7170 )
2018-07-27 13:45:03 +08:00
5f7fc80389
expression, types: fix decimal minus/round/multiple result ( #7001 )
2018-07-12 00:02:19 +08:00
426ae62f9e
expression: fix wrong result of floor ( #6620 )
2018-05-23 14:42:42 +08:00
9f7fb424ef
expression: fix wrong result of CEIL integer ( #6606 )
2018-05-23 10:56:38 +08:00
93f27dc50e
expression: fix wrong result of CEIL ( #6598 )
2018-05-22 13:39:04 +08:00
357d5df66b
remove useless alias ( #6473 )
2018-05-05 22:36:54 +08:00
f21483e6ed
expression: add Clone() for builtinFunc
2018-04-11 10:00:19 -05:00
0553deeb42
*:improve code readability and unified aliases ( #5997 )
2018-03-15 10:52:36 +08:00
4e1a114e68
*: move package context to sessionctx ( #5890 )
2018-02-22 18:03:38 +08:00
fc6376981d
*: remove GetSessionVars() in expression evaluation ( #5683 )
2018-01-22 11:04:32 +08:00
8b15cb52b7
*: move StatementContext to its own package. ( #5177 )
2017-11-22 00:11:14 +08:00
62433663e5
util/types: change types path ( #5007 )
...
* util/types: change types path
2017-11-04 10:37:14 -05:00
ed7f68ca9b
*: Add Row interface ( #4859 )
2017-10-23 11:36:28 +08:00
64bc8cb6cb
expression: remove "self" field in "baseBuiltinFunc" completely ( #4766 )
...
* expression: remove "self" field in "baseBuiltinFunc" completely
* address comment
2017-10-13 04:55:25 -05:00
60626912a7
expression, plan: remove "foldable" from "baseBuiltinFunc" ( #4759 )
2017-10-12 04:03:54 -05:00
51a6e6fc48
*: fix ineffectual assignments #4713 ( #4746 )
2017-10-11 21:26:03 -05:00
83ace4f748
expression: return NULL when error is not nil ( #4749 )
2017-10-11 03:38:03 -05:00
ca05619cdf
expression: enforce error check ( #4716 )
2017-10-08 22:29:07 -05:00
b4ad894b0a
expression, plan: do come code clean and make golint happy ( #4681 )
2017-09-29 10:35:47 +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