Commit Graph

106 Commits

Author SHA1 Message Date
7930c2ce7b expression: fix that str_to_date returns different result on no zero date sql mode. (#39316)
close pingcap/tidb#39146
2022-11-24 12:27:58 +08:00
028c5eb835 types: Fix TIMESTAMPADD lost fractional digits (#38003)
close pingcap/tidb#31795
2022-11-21 16:43:57 +08:00
e99d82a9b4 *: fix issue of cast string as time is incompatible with MySQL (#35455)
close pingcap/tidb#34539
2022-06-23 13:50:37 +08:00
4ae78cdead expression: refine date_add/sub return type and precision (#35009)
close pingcap/tidb#9813, close pingcap/tidb#31799, ref pingcap/tidb#31867
2022-06-16 16:12:34 +08:00
1bf64c60f4 *: Refactor FieldType structure (#33569)
close pingcap/tidb#32116
2022-04-26 19:28:51 +08:00
0beac1800c expression: fix the wrong rounding behavior of Decimal (#33278)
close pingcap/tidb#32213
2022-04-02 14:32:29 +08:00
c11e650527 *: make golangci-lint work on Go1.18 (#33081)
close pingcap/tidb#33080
2022-03-15 22:43:52 +08:00
e7da7d4f95 *: change fsp from int8 to int (#28347) 2022-01-27 13:59:12 +08:00
397eb725ea expression: make some datetime functions' behavior consistent with MySQL (#31078)
close pingcap/tidb#30683
2022-01-05 16:22:36 +08:00
8bc22b1aa1 expression,types: Adjusts UNIX_TIMESTAMP() for non-existing DST values (#28739) (#30405) 2021-12-09 16:57:58 +08:00
13b7a2d0ef ddl: disallow change columns from zero int to time (#25728) 2021-11-30 22:09:53 +08:00
a95927f50a expression: Fix wrong result of microsecond function in vectorized (#29310) 2021-11-03 11:37:01 +08:00
db056cfe0c expression: Fix wrong result of hour function in vectorized expression (#28857) 2021-10-15 16:35:27 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
4325eebcf4 expression: optimize localSliceBuffer to be lock-free (#26078) 2021-07-16 13:13:33 +08:00
5a07699871 expression: fix incompatible last_day func behavior in sql mode (#25953) 2021-07-06 18:51:29 +08:00
87db757daf expression: error information is inconsistent with MySQL about date or time literal (#25611) 2021-07-02 15:07:27 +08:00
cc5e161ac0 *: use tikv/client-go/v2 (#25359) 2021-06-11 17:24:35 +08:00
e9488ce2ee *: implement tidb_bounded_staleness built-in function (#24328) 2021-05-18 14:15:40 +08:00
c9e85ec701 expression: refine performance of EXTRACT function (#22701) 2021-02-19 15:31:27 +08:00
f0c6fa9c25 expression: fix compatibility of extract day_time unit functions (#21601)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-11 17:13:21 +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
340ba78f0c expression: fix compatibility behaviors in sec_to_time with MySQL (#21555) 2020-12-09 13:15:38 +08:00
0deb0a3426 expression: fix compatibility behaviors in zero datetime with MySQL (#21220) 2020-12-07 14:13:43 +08:00
ebb5573869 expression: remove the ambiguous error message of unix_time ... (#19707) 2020-09-03 23:53:08 +08:00
242ce93302 Revert "expression: support NO_ZERO_DATE sql_mode" (#16740) 2020-04-23 13:37:19 +08:00
db7c13537a expression: support NO_ZERO_DATE sql_mode (#16053) 2020-04-22 23:27:01 +08:00
62e4d588a8 Makefile: add unconvert to inspect unnecessary type convert (#16549) 2020-04-22 23:01:59 +08:00
57739a2179 expression: implement vectorized evaluation for builtinConvertTzSig (#16349) 2020-04-15 14:07:08 +08:00
c561d5aa99 *: remove useless conversions and omit some types (#16262) 2020-04-10 00:23:06 +08:00
c8fa259b2e expression: sec_to_time is not compatible with MySQL when the argument is a scientific notation number (#15614) 2020-03-28 22:14:05 +08:00
1cb773919b expression: vectorized builtinDateFormatSig (#14934) 2020-03-11 15:22:44 +08:00
b85ae7d766 expression: fix incorrect error handle in builtInTimeFormat (#14275) 2020-01-06 22:14:50 +08:00
391beea08b expression: implement vectorized evaluation for builtinMakeTimeSig (#13967) 2020-01-06 17:42:09 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +08:00
c444d7d737 expression: fix incorrect error handle in builtInMinute/Second/MicroSecondSig (#14060) 2019-12-26 15:17:39 +08:00
3368645bd2 expression:implement vectorized evaluation for builtinExtractDurationSig (#13489) 2019-12-20 01:42:46 -06:00
a887500215 expression: implement vectorized evaluation for builtinUnixTimestampIntSig (#13098) 2019-12-18 06:53:59 -06:00
ad1a15de7b expression: implement vectorized evaluation for SubXXXAndYYY (#13691) 2019-12-18 06:12:55 -06:00
641963e564 expression: implement vectorized evaluation for builtinUnixTimestampDecSig (#13507) 2019-12-11 13:09:28 +08:00
0255f6a5ad expression: fix a bug in builtinHourSig vec-function (#13949) 2019-12-10 16:38:25 +08:00
67b40720cd expression: implement vectorized evaluation for builtinTimeLiteralSig (#13816) 2019-12-06 14:05:19 +08:00
318c6bb735 expression: implement vectorized evaluation for builtinTimeLiteralSig (#13912) 2019-12-06 12:15:18 +08:00
cdadc9814c expression: use generator to implement vectorized evaluation for builtinAddDate*Sig and builtinSubDate*Sig (#13705) 2019-12-06 12:09:19 +08:00
997233f5f8 expression: implement vectorized evaluation for builtinTimeSig (#13814) 2019-12-02 15:59:28 +08:00
1c65ab936f expression: implement vectorized evaluation for builtinStrToDateDurationSig (#13505) 2019-11-28 06:12:27 -06:00
a1dc0477a5 types: add error code for package types (#13300) 2019-11-26 19:45:14 +08:00
9810b2d078 expression: implement vectorized evaluation for builtinDateDiffSig (#13595) 2019-11-26 16:05:13 +08:00