Commit Graph

2159 Commits

Author SHA1 Message Date
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
3ef3e54b5e planner: don't push down null sensitive join conditions (#19620) 2020-11-12 17:16:31 +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
dy
a3facd0f71 expression, planner: fix decimal results for aggregate functions (#20017) 2020-11-11 14:46:22 +08:00
a338e35932 expression: fix wrong inferred type for sum and avg (#20926) 2020-11-11 14:10:34 +08:00
8d35f17c17 Update the errors dependence to the latest version (#20917) 2020-11-10 09:50:39 +08:00
26d42c9e23 planner: add partition pruner for list (columns) partition (#20740) 2020-11-09 13:09:49 +08:00
c243a0b8ce expression: fix ADD_DATE daylight saving time change (#20871) 2020-11-06 11:40:01 +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
f1c464a86a collation: add utf8mb4_zh_pinyin_tidb_as_cs collation interface (#20504) 2020-11-03 11:35:39 +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
bf043c2d1f executor, expression: Fixed the warning messages when calling str_to_date function failed (#20415) 2020-10-28 14:04:01 +08:00
fd84a91895 ddl, tikv: add delay during AddIndex DDL and remove schema check for async commit (#20550) 2020-10-28 11:48:34 +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
66b241e440 planner: correlated column with unique constraint can help to eliminate MaxOneRow (#20259)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-10-22 17:02:28 +08:00