Commit Graph

2219 Commits

Author SHA1 Message Date
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
6e1c2ac8a2 executor: fix LEAD and LAG's default value can not adapt to field type (#20747) 2020-12-11 14:55:22 +08:00
081ab5fb84 expression: fix using tidb_decode_plan to decode plan and query in information_schema.slow_query returns error (#21648) 2020-12-11 14:26:51 +08:00
b9c5aaf552 planner: error by default for GROUP BY expr ASC|DESC (#21120) 2020-12-10 16:01:51 +08:00
c138941231 expression: handle invalid argument for addtime and subtime function (#21600)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-10 14:34:52 +08:00
8a3705ee40 expression: change the round rule for approximate value to round to nearest even (#21324) 2020-12-10 11:34:52 +08:00
7007bb543b planner: move partition prune test from expression pkg to planner/core pkg (#21587) 2020-12-10 10:01:28 +08:00
8dd5b0a0c4 planner: do not propagate column eq with different column types (#21495) 2020-12-09 19:54:43 +08:00
037c3780b6 *: remove needless InInsertStmt (#19787)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-09 19:00:59 +08:00
11b766df54 expression: fix error "invalid time format: '{0 0 0 0 0 0 0}'" for timestampAdd (#21591)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-09 17:49:03 +08:00
39f94f2bbc expression: not evaluate time addition for timestamp with 2 args if 1st arg's year is zero (#21572) 2020-12-09 16:45:22 +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
340ba78f0c expression: fix compatibility behaviors in sec_to_time with MySQL (#21555) 2020-12-09 13:15:38 +08:00