Commit Graph

516 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
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
037c3780b6 *: remove needless InInsertStmt (#19787)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-09 19:00:59 +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
3d685035ff expression: fix incorrect result of IsTrue function for time types (#21534) 2020-12-08 21:05:13 +08:00
a3a248160f ddl: check partition definition correctly in list partition (#21309) 2020-12-08 14:10:48 +08:00
c3c3063b66 expression: set IsBooleanFlag for boolean scalar functions (#20706) 2020-12-07 17:22:48 +08:00
1df8107448 planner: fix invalid convert type in between...and... (#19820) 2020-12-04 18:59: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
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
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
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
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
1d668fa930 expression: keep the original data type when doing date arithmetic operations (#20940) 2020-11-20 17:29:11 +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
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
ef57bdbbb0 *: fix somes bugs related to the clustered index and the new collation (#20934) 2020-11-12 15:18:15 +08:00
269494e3de *: Move sysvar validation to struct (3 of 3) (#20521) 2020-11-12 13:22:42 +08:00
aa2b83210d planner: make pushdown limit use its child schema (#20807) 2020-11-04 15:58:34 +08:00
a53c1d05b1 expression: Support some cast functions push down to TiFlash (#20787) 2020-11-04 15:21:01 +08:00
42590965ed *: refactor CompilePattern and DoMatch used by like (#20610) 2020-11-04 13:25:52 +08:00
e102c12479 planner, config: Enable plan cache by default (#20416) 2020-10-29 23:00:26 +08:00
ccd48eeb4d expression: make str_to_date() more compatible with MySQL (#20298) 2020-10-28 19:06:25 +08:00
e3c3668a27 *: fix not precedence in generated column (#20612) 2020-10-27 17:59:35 +08:00
23d8b30470 expression, executor: add iso 8601 and timezone support for temporal string literal (#20534) 2020-10-27 16:24:59 +08:00
3db90e4256 types: fix incompatible result of DATE_ADD() (#19880) 2020-10-26 11:10:14 +08:00
106b04ddab *: Fix sysvars to native type in @@ context (#20394) 2020-10-19 14:13:43 +08:00
743a910cd9 planner: fix the panic when the argument of agg func is scalarfunction in apply (#20485) 2020-10-16 14:58:16 +08:00
da70410fd3 ddl: Supports transitions between the same type (String types) (#20032) 2020-10-16 11:55:43 +08:00
8ed9a6ff6d expression: fix TIMESTAMP func get wrong result with decimal (#15185) (#20088) 2020-10-15 15:46:03 +08:00
d726ba647e expression: support decode more types through tidb_decode_key() (#20382) 2020-10-15 15:12:28 +08:00
3d4016fe46 *: change file mode to 0644 (#20443)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-10-14 16:35:31 +08:00
a7f9d7a67a expression: fix data too long when convert to bit returns null value (#20241) 2020-10-09 14:20:10 +08:00
2f8092ea84 expression: fix a bug that the coercibilities of enum and set are wrong (#20274)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-10-09 14:01:39 +08:00
80f3c9e836 expression: unset binary flag for *_bin collation column (#20269) 2020-10-04 11:01:10 +08:00
1d34c333f4 expression: avoid constant propagate for the hybrid types (#20258) 2020-09-29 16:11:32 +08:00
5eaaa5c649 expression: fix a bug that from_unixtime + union all returns truncated result (#20225)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-09-27 12:39:38 +08:00