Commit Graph

2200 Commits

Author SHA1 Message Date
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
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
cd2600f529 expression: fix parse timestamp literal using datetime type (#21558) 2020-12-09 11:38:47 +08:00
3d685035ff expression: fix incorrect result of IsTrue function for time types (#21534) 2020-12-08 21:05:13 +08:00
03f385de5f planner/core: use constant propagate before predicates push down (#21061) 2020-12-08 16:32:32 +08:00
a3a248160f ddl: check partition definition correctly in list partition (#21309) 2020-12-08 14:10:48 +08:00
77572f873d planner: do not push down the aggregation function with correlated column (#21453) 2020-12-08 10:54:24 +08:00
c3c3063b66 expression: set IsBooleanFlag for boolean scalar functions (#20706) 2020-12-07 17:22:48 +08:00
b28f8adfed expression: set flen to -1 when cast float to string (#21409) 2020-12-07 16:38:21 +08:00
0deb0a3426 expression: fix compatibility behaviors in zero datetime with MySQL (#21220) 2020-12-07 14:13:43 +08:00
1df8107448 planner: fix invalid convert type in between...and... (#19820) 2020-12-04 18:59:48 +08:00
7e3074afa3 ddl: support column type change from JSON type to other types (#21266) 2020-12-04 00:14:48 +08:00
e33b37789c planner: add projection if expand virtual generated column (#20478)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-03 21:42:49 +08:00
7a88ad852d planner: check for decimal format in cast expr (#20836) 2020-12-03 18:39:48 +08:00
c218c58218 *: support select from tablesample (#20883) 2020-12-03 16:46:18 +08:00
d9be31c5bf expression: make TestNowAndUTCTimestamp more stable (#21410) 2020-12-02 16:33:45 +08:00
550c2c0c10 planner: natural join not consider rowid and null eq not propagate (#21328)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-02 12:18:48 +08:00
5131514ebb statistics: fix a bug which causes panic when using the clustered index and the new collation (#21379)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-01 14:08:41 +08:00
35eec1b062 expression: fix the in function get the wrong result if args is time type (#21293) 2020-12-01 12:14:17 +08:00
c47ac4ad15 expression: enable coprocessor pushdown of function UUID (#21174) 2020-11-30 13:52:59 +08:00