Commit Graph

2179 Commits

Author SHA1 Message Date
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
094b462b44 ddl: check the expression in partition definition and refactor code (#21325) 2020-11-30 11:12:00 +08:00
255aaad6b3 expression: convert a date to number if the date is used in numeric context (#20961) 2020-11-26 15:20:50 +08:00
8f11e31685 expression: revert some changes to fix mysql_test (#21246) 2020-11-24 15:28:23 +08:00
b77a514ae9 expression: fix a bug that DML using caseWhen may cause schema change (#19857)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-11-24 13:27:02 +08:00
afb2ab95f0 table: fix zero date in different sqlmode (#20206) 2020-11-24 12:46:51 +08:00
4897ecdba2 planner, type: fix AggFieldType error when encouter unsigned and sign type (#21062) 2020-11-24 11:33:24 +08:00
2effb7dd19 planner: make index-hash-join and index-merge-join consider the collation in the right way (#21221)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-11-23 20:37:43 +08:00
e6d7e7b89e planner: make index-hash-join and index-merge-join consider collation (#21201)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-11-23 17:34:53 +08:00
93c3e6becd *: fix default decimal precision (#21162) 2020-11-21 21:07:54 +08:00
1d668fa930 expression: keep the original data type when doing date arithmetic operations (#20940) 2020-11-20 17:29:11 +08:00
49a1527893 expression: adjust int constant when compare with year type (#21099) 2020-11-19 19:04:53 +08:00
42d0208032 expression: fix builtin IF truncation of type len (#20743) 2020-11-19 16:47:33 +08:00
de75e604ff *: differentiate types for user variables (#18973)
Co-authored-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-11-17 17:03:41 +08:00
7c88ca7974 ddl, session: set charset and coordinate collation (#21034) 2020-11-16 19:03:26 +08:00
41786cb976 *: seperate hash keys from join keys in IndexJoin (#20761) 2020-11-16 16:24:51 +08:00
e90aac7723 plannr: build empty range for overflow predicate (#21042) 2020-11-16 11:42:27 +08:00
b6b4c67640 planner: the precision of a decimal type should not be more than MaxDecimalWidth (#21046) 2020-11-13 20:11:43 +08:00
d084651faf planner, expression: fix a bug causes schema change after DML (#21027)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-11-13 19:47:43 +08:00
6e3d2ecb48 expression: avoid unnecessary warnings/errors when folding constants in shortcut-able expressions (#19797) 2020-11-13 15:42:19 +08:00
99bdecc966 ddl: fix float precision larger than 53 (#20458) 2020-11-13 14:08:36 +08:00
2a185ec4cf executor, expression: Fixed the warning messages when calling date_add function failed (#20418) 2020-11-13 12:04:34 +08:00