Commit Graph

2231 Commits

Author SHA1 Message Date
355fdfee4b brie: update br pkg to latest master (#22528) 2021-01-28 23:49:45 +08:00
4658536793 expression: handle duration type infer in least and greatest (#22271)
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
2021-01-18 12:39:59 +08:00
xhe
289bc7e79c ddl: concurrent safe api for using rule bundles cache (#22035)
Signed-off-by: xhe <xw897002528@gmail.com>
2021-01-13 10:58:58 +08:00
e3108df576 planner: do not cache prepared plan if optimization depends on mutable constant (#22349) 2021-01-12 11:11:59 +08:00
f2694209a8 expression: set collation function flen (#22084) 2021-01-11 12:34:58 +08:00
b8c91d14ef expression, executor: fix runtime panic in WEIGHT_STRING function when the length of binary is too large (#22251) 2021-01-11 11:47:27 +08:00
cdcb0ffa34 expression: fix unexpected panic when doing isNullRejected check (#22173) 2021-01-11 10:55:17 +08:00
2386702697 executor: fix data too long in union statement with select null and select varchar (#22183) 2021-01-06 13:34:35 +08:00
029eef87ed planner, expression: fix error when using IN combined with subquery (#22080) 2021-01-05 16:30:33 +08:00
7f9c716854 expression, ddl: check the argument count for the generated column (#22154)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2021-01-05 13:45:45 +08:00
7c81719568 types: refine JSON conversion, throw err when object/array convert to integer/float/decimal (#21826) 2021-01-04 18:48:23 +08:00
9cb4fb38d8 expression: return correct results for user variables of datetime type (#22078) 2021-01-04 11:26:14 +08:00
933e456beb executor: disallow split table region by null values (#20496) 2020-12-26 15:26:02 +08:00
3e2ff1d16c expression: fix different types compare error (#21338) 2020-12-25 16:50:11 +08:00
c3e54962d1 executor: fix a bug that can not insert null into a not null column in the empty SQL mode (#21237)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-25 11:44:00 +08:00
47ef48b854 planner/codec: fix issue of decode plan error cause by without escape special char (#21937)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-12-24 20:20:29 +08:00
db31b29d63 ddl: add the not expression check when creating a partition table (#21497) 2020-12-24 16:25:44 +08:00
d337bf4cd4 parser: update parser and add test for parse identifier (#21908) 2020-12-24 11:48:32 +08:00
4ec9b9c128 expression: fix functions format_bytes and format_nano_time incorrectly use varbinary (#15416) 2020-12-23 16:04:29 +08:00
e172656e37 expression: fix comparing json with string (#21903) 2020-12-23 11:54:17 +08:00
49791bc3f5 expression: do not rewrite like to = if new collation is enabled (#21893) 2020-12-23 10:53:30 +08:00
01a39ae671 expression: fix wrong type inferring for ceiling function. (#21920) 2020-12-22 17:03:59 +08:00
d44e123395 planner: prevent agg push down if it is in the outer child of apply (#21902) 2020-12-22 16:43:26 +08:00
56d3f6b471 executor: support forbiding cross dc read for pointGet (#21840) 2020-12-22 15:31:31 +08:00
dd0dc46d5e expression: fix type infer for tidb's builtin compare(least and greatest) (#21150)
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
2020-12-22 14:58:31 +08:00
e8fb3eab2c expression: modify the mean result of time type (#21514) 2020-12-21 17:51:31 +08:00
ce5ce53fa9 ddl, distsql: Support forbiding cross txnScope query all *Reader Executor (#21650) 2020-12-21 15:30:30 +08:00
5cb50070bd planner: fix union doesn't handle collate correctly (#21854)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-21 15:06:33 +08:00
b232a23e7a expression, types: fix datetime and year comparison error (#20233) 2020-12-18 17:19:30 +08:00
25a94e5f2c expression:truncate decimal value instead of return error (#21691) 2020-12-18 13:46:05 +08:00
aa6f585b41 expression: add annotations to inform user to import planner/core to initalize expression.RewriteAstExpr and expression.EvalAstExpr (#21789) 2020-12-18 10:46:05 +08:00
f363bffd86 mocktikv: select count result differs between tikv and mocktikv (#21166) 2020-12-17 19:44:33 +08:00
b25f62dce6 expression: fix compatibility behaviors in time_format with MySQL (#21559) 2020-12-17 15:16:57 +08:00
556ccccdeb expression: add implicit eval int and real for function dayname (#21806) 2020-12-17 14:52:04 +08:00
46fa162889 expression: do not report error when got unknown locale (#21818)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-17 13:44:05 +08:00
67d66d68f2 expression: fix casting year 0 to string 0000 (#21469) 2020-12-15 17:33:55 +08:00
5c19b8236f expression: handle tp.flen overflow in to_base64 function (#20947) 2020-12-15 16:44:54 +08:00
41eb594924 expression: handle hybrid field types for where clause (#21724) 2020-12-15 16:06:54 +08:00
8435b28296 expression: fix compatibility behaviors in round() with MySQL (#21690) 2020-12-15 15:18:55 +08:00
b0d9934fb0 types: fix compare float64 with float64 in json (#21709)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-15 12:12:55 +08:00
dfbb69d33d types: fix compare object json type (#21703)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-14 17:55:54 +08:00
ca909c1bf9 planner: fix the coercibility of the cast function (#21705)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-14 17:19:28 +08:00
3eaa63d679 expression: Fix unexpected panic when using IF function. (#21132) 2020-12-14 17:02:55 +08:00
3adc574cce expression: fix incompatible result of JSON_SEARCH() (#20164) 2020-12-14 15:40:17 +08:00
6e7613fec3 expression: fix the error of parsing time (#21513) 2020-12-14 10:59:52 +08:00
06cd92e05f types, expression: handle uint64 correctly in JSON (#21621) 2020-12-12 21:45:12 +08:00
43d9293be8 types, expression, codec: agg JSON values (#21656) 2020-12-11 17:31:52 +08:00
f0c6fa9c25 expression: fix compatibility of extract day_time unit functions (#21601)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-11 17:13:21 +08:00
579022cdf3 expression, types: fix unexpected result from TIME() when fsp digits > 6 (#21652) 2020-12-11 16:47:52 +08:00
499a31f3c3 server: fix float fmt returned to mysql client (#21660) 2020-12-11 15:37:16 +08:00