Commit Graph

327 Commits

Author SHA1 Message Date
f07ad16883 expression: fix builtin function ord (#13994) 2019-12-15 18:10:43 +08:00
73d951d696 expression: fix compatibility issue related to ADDDATE (#13827)
* Fix issue #13822
2019-12-05 20:04:45 +08:00
6b6a6982b4 expression: refactor JSON_QUOTE / JSON_UNQUOTE (#13688) 2019-12-05 11:23:31 +08:00
9d582b6066 expression: fixed json type for truncate (#13064) 2019-12-04 19:28:12 +08:00
e979cff6bb planner: add column mapping in explain result (#13640) 2019-11-27 16:39:19 +08:00
a1dc0477a5 types: add error code for package types (#13300) 2019-11-26 19:45:14 +08:00
6a17f90205 expression: fix the corner case of CAST int as unsigned real/decimal (#13637) 2019-11-26 18:01:07 +08:00
2dfaf55410 sysvars: error code package for sysvar.go (#13366) 2019-11-12 13:01:29 +08:00
b1aad07148 expression: QUARTER/DATE_FORMAT compatibility with mysql for 0/0.0 values (#12488) 2019-11-09 23:06:13 +08:00
c01006acb0 expression: fix incorrect proto fields and add missing overflow handling for arithmatic functions (#12858)
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
2019-11-06 17:39:14 +08:00
e43444265b *: Support required rows rows for arrow decode format. (#12613) 2019-11-05 18:12:09 +08:00
7b27cfb60f go.mod: use the latest parser to fix 'select timestampliteral(rand())' (#12995) 2019-10-30 20:07:17 +08:00
43202b1383 expression, ranger: three optimizations to speedup some specific query's opt time (#12687) 2019-10-29 18:00:45 +08:00
33b726adab types: fix undefined behavior in numeric types cast (cast 1<<64 to uint64) (#11968) 2019-10-29 17:18:51 +08:00
36f0f37b40 expression, planner: remove some fields from `expression.Colum… (#12573) 2019-10-29 15:48:26 +08:00
5d5497bfeb expression: speed up unit tests under the expression package (#12887) 2019-10-23 03:56:31 -05:00
b8cd65714f *: record and print the plan in slow log. (#12179) 2019-10-17 22:13:19 +08:00
57327d122c expression: add builtin function json_valid (#12596) 2019-10-15 11:48:51 +08:00
7ffa4500e6 planner: support a hint to read from tiflash in planner (#12479) 2019-10-11 16:36:35 +08:00
10519498a9 expression: add builtin function tidb_decode_key() (#12193) 2019-09-24 10:02:29 +08:00
46113838b5 expression: fix wrong Flen when processing Decimal and Int (#12312) 2019-09-23 17:00:15 +08:00
e2b1f7eff8 expression: change the String() method of expression.Column (#12089) 2019-09-16 14:30:22 +08:00
5c18c5df97 type: add db prefix to function name for not exist error messages (#11156) 2019-09-10 11:20:19 +08:00
b90ebe1109 expression: enable vectorized expression evaluation by default (#11965) 2019-09-03 09:41:05 +08:00
67d4f913dd expression: fix type infer of unaryMinus which should return ETDecimal if ETInt overflow int (#11989)
Signed-off-by: Lonng <heng@lonng.org>
2019-09-02 21:30:13 +08:00
b438bf21f6 expression: give the full error message when the result of calling the exp function is out of range (#11862) 2019-08-27 09:35:35 +08:00
46f1dc15f6 types: convert EOF error to ErrTruncate when parse duration (#11865)
* fix time_func

* check warnings
2019-08-26 17:36:55 +08:00
bc4a32431f expression: remove unnecessary convertIntToUint. fix error in… (#11640) 2019-08-12 11:13:10 +08:00
8fac5e23ed expression: fix a bug in when comparing bit with string (#11654) 2019-08-07 16:42:10 +08:00
050172c248 parser: support cast as real (#11564) 2019-08-05 19:38:10 +08:00
cb4b778268 expression: deduce result type for multi-argument functions like IF wrongly in some cases (#11605) 2019-08-05 19:30:10 +08:00
5f9fe27a14 expression: the quote function should treat null expr as NULL… (#11592) 2019-08-05 19:05:37 +08:00
829ba98907 expression: remove the NotNullFlag for aggregation func MAX/MIN when inferring type (#11343) 2019-08-05 17:41:40 +08:00
ddafdff8f7 expression: fix date_add func in SECOND INTERVAL (#11312) 2019-08-05 15:22:16 +08:00
1c43f55f90 parser: support cast as float (#11519) 2019-08-01 14:30:07 +08:00
1c0b366295 fix ConvertJSONToInt unsigned bug (#11483) 2019-08-01 10:40:04 +08:00
ab45834fd2 fix error in ConvertJSONToInt error msg (#11493)
All tests passed, auto merged by Bot
2019-07-31 11:09:11 +08:00
768f61f52f expression: handle builtin time getInterval from Decimal\Real (#11479)
All tests passed, auto merged by Bot
2019-07-30 17:16:52 +08:00
5c07ccec3a expression: make regex binary and rlike binary be case sensitive (#11502) 2019-07-29 16:56:59 +08:00
1ae5e4ce98 parser: support cast as double (#11443) 2019-07-29 10:28:12 +08:00
5c35082f6a expression: handle builtin add_date/sub_date func overflow (#11472) 2019-07-27 18:22:21 +08:00
566c3278e3 expression: improve the compatibility with mysql when datatime is invalid. (#11445)
All tests passed, auto merged by Bot
2019-07-25 18:12:06 +08:00
dcadc0acfb types: fix uint64 overflow bug in ConvertJSONToFloat (#11355)
All tests passed, auto merged by Bot
2019-07-25 12:52:40 +08:00
c95d42a537 expression, session: handle CASE WHEN specially when folding constant during outerJoin Simplification (#11105)
Test pass, auto merge by Bot
2019-07-24 19:41:17 +08:00
abbca5375e *: add trace support for subquery (#11182)
Test pass, auto merge by Bot
2019-07-24 19:03:47 +08:00
f8912049f5 *:add opt_rule_blacklist in mysql tables. (#11096) 2019-07-24 13:36:29 +08:00
d977edf8a3 Function SUBTIME ADDTIME should return NULL with a warning if… (#11262) 2019-07-19 19:49:40 +08:00
ddb6132e82 expression, types: fix Mod(%), Multiple(*), Minus(-) operators meets inconsistent 0 results. (#11251) 2019-07-19 12:37:25 +08:00
5aef053c16 expression: fix getIntervalFromDecimal in DATE_ADD() (#11297) 2019-07-18 23:18:41 +08:00
dd06ebb315 fix microseconds behaviour in DATE_ADD() (#11280) 2019-07-17 14:39:55 +08:00