Commit Graph

346 Commits

Author SHA1 Message Date
fe6ca65414 expression: implement the Coercibility() function (#14739) 2020-02-13 19:15:48 +08:00
da2ed2b5bc expression: fully open CAST push-down switcher (#14672)
Signed-off-by: Lonng <heng@lonng.org>
2020-02-09 16:27:45 +08:00
87bbe7dcbe types: Fix duration parser (#14588)
Signed-off-by: Iosmanthus Teng <myosmanthustree@gmail.com>
2020-02-07 14:30:44 +08:00
22fb77ee11 expression: handle ErrTruncated when dividing decimals in non-data-change stmts (#14438) 2020-02-07 14:02:52 +08:00
465af00b46 *: use new registrable terror (#14606) 2020-02-06 16:40:26 +08:00
ebc6a2d39d *: add builtin aggregate function json_objectagg (#11154) 2020-02-04 21:41:55 +08:00
83ab488481 expression: fix implement of rand (#14565) 2020-02-04 16:38:53 +08:00
c46044f026 expression: optimize function IN using hashmap (#13594) 2020-01-31 19:58:53 +08:00
9d38c5467a *: use 8 byte MysqlTime format (#14278) 2020-01-31 14:49:06 +08:00
c88ceca2c4 types: fix parse DATETIME/TIME from string incompatible with MySQL (#14547)
Signed-off-by: Lonng <heng@lonng.org>
2020-01-23 16:53:36 +08:00
664adfe477 expression: fix json_key not compatible with MySQL (#14556) 2020-01-20 21:30:03 +08:00
2395472804 expression: make EvalXXX method of deferred/normal constant consistent (#14401) 2020-01-19 13:55:32 +08:00
1d641955d5 expression: disable int_col <cmp> non-int const folding for plan cache (#14120) 2020-01-15 18:42:20 +08:00
c90e6a2eac go.mod: update parser for revamped special comment parser (#14389)
fix parser related integration test
2020-01-09 15:28:14 +08:00
0feafcf11c expression: check ParamMarker in ConstItem when plan cache is enabled (#14200) 2020-01-06 20:54:39 +08:00
2ce3713803 executor: fix cases that some intermediate errors may be ignored when converting a vector to bools (#14081) 2019-12-22 21:10:56 -06:00
510c36d4cb planner: fix a bug for chunk cost model. (#14144) 2019-12-22 09:15:16 +08:00
352adc5b00 executor: replace the flag CastStrToIntStrict with InSelectStmt (#14115) 2019-12-18 20:45:17 +08:00
f356c6c1a7 test: optimize expression unit test (#14102) 2019-12-18 11:48:46 +08:00
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