Commit Graph

120 Commits

Author SHA1 Message Date
a8ce4af9f8 expression: Fix incorrect behavior of greatest/least when mixed temporal type with others (#31037)
close pingcap/tidb#30264
2021-12-30 11:33:50 +08:00
4947cf1f59 expression: fix wrong result of greatest/least(mixed unsigned/signed int) (#30121) 2021-12-02 13:11:53 +08:00
8dc59e684a planner: make clear for MaybeOverOptimized4PlanCache (#29782) 2021-11-25 16:42:29 +08:00
8b028b899d *: replace compareDatum by compare (#30060) 2021-11-23 17:49:50 +08:00
4b110036e1 expression: fix wrong result type for greatest/least (#29408) 2021-11-07 11:17:03 +08:00
8ae81b3852 expression: fix different results for greatest when vectorized is off (#29438) 2021-11-04 19:17:02 +08:00
83e559db0a planner: allow refineArgs for plan cache in some situations (#28944) 2021-10-29 18:09:49 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
32f96fef77 expression: make infer collation support the expressions with different charset (#27863) 2021-10-11 14:51:25 +08:00
13be486682 planner: rename some variables for easy understanding (#28226) 2021-09-26 13:20:46 +08:00
b339ca29c8 expression: aggregate the collation only if the function is needed. (#27789) 2021-09-22 13:40:45 +08:00
c52cc5efa7 expression: fix fsp for timestamp function (#28136) 2021-09-22 12:30:45 +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
f93ae253ec expression: Added type compare check for int/binary strings for BETWEEN, issue-23602 (#27085) 2021-08-12 11:51:15 +08:00
c70662bbec expression: show display name in error messages (#26665) 2021-07-28 21:50:22 +08:00
dd2fadb190 expression, executor: fix type infer for greatest/leastest(datetime) (#26533) 2021-07-26 17:04:16 +08:00
eedb191da4 Revert "expression: Fix greatest and least function lost decimal precision compared with MySQL" (#26046) 2021-07-09 10:45:30 +08:00
3c3096e8c0 expression: Fix greatest and least function lost decimal precision compared with MySQL (#25766) 2021-07-07 15:29:29 +08:00
75a031af4a expression: check NotNullFlag of columns when simplifying binary operations (#24049) 2021-04-15 23:03:53 +08:00
3ed4a23b95 executor: refineArgs() bug fix when compare int with very small decimal (#23694) 2021-03-30 20:53:24 +08:00
f4b9da59c1 expression: fix refine compare constant (#23339) 2021-03-18 16:35:36 +08:00
7a9b07e92b expression: fix unexpected constant fold when year compare string (#23281) 2021-03-16 14:46:55 +08:00
50d840f81b planner: fix incorrect duration between compare (#22830) 2021-03-10 15:54:55 +08:00
4f56ab07a2 expression: do not adjust int when it is null and compared year (#22821)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2021-02-20 14:43:16 +08:00
4658536793 expression: handle duration type infer in least and greatest (#22271)
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
2021-01-18 12:39:59 +08:00
3e2ff1d16c expression: fix different types compare error (#21338) 2020-12-25 16:50:11 +08:00
dd0dc46d5e expression: fix type infer for tidb's builtin compare(least and greatest) (#21150)
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
2020-12-22 14:58:31 +08:00
b232a23e7a expression, types: fix datetime and year comparison error (#20233) 2020-12-18 17:19:30 +08:00
1df8107448 planner: fix invalid convert type in between...and... (#19820) 2020-12-04 18:59:48 +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
49a1527893 expression: adjust int constant when compare with year type (#21099) 2020-11-19 19:04:53 +08:00
e90aac7723 plannr: build empty range for overflow predicate (#21042) 2020-11-16 11:42:27 +08:00
462a53f79a expression: utilize the flag of column arguments to simplify expressions (#20149) 2020-10-09 14:43:11 +08:00
5b26588eba expression: add linear search for the interval function (#19543)
* add linear search for interval

* update test

* remove debug info

* fix mistakenly erased code

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-04 12:07:32 +08:00
931ff98df5 simple fixes for the staticcheck linter (#18923)
Note that this found 2 bugs where errors were being silently ignored.

These are really simple fixes that didn't require much thought.
There are still more staticcheck warnings that should be fixed.

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-06 13:38:17 +08:00
6a49bb4a84 *: fix a bug which causes function return truncated result (#17101) 2020-05-12 12:54:35 +08:00
9d391949cd expression: refactor logic about checking illegal mix collations (#16866) 2020-04-29 16:40:56 +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
25580ea5f4 *: Use a function to get the ONE, ZERO and NULL and fix the clone. (#16512) 2020-04-17 19:11:52 +08:00
1771fff928 expression: make field and findInSet support collation (#15100) 2020-03-04 18:12:53 +08:00
55f5cf538d planner/expression: constant propagation and predicate pushdown should be aware of plan cache (#14941) 2020-03-04 16:23:17 +08:00
1a92dc07df collation: fix wrong collation information used in expression calculation (#15006) 2020-03-02 17:30:04 +08:00
f2fa5c5fd5 expression: consider collations when comparing strings (#14913) 2020-02-25 15:06:37 +08:00
ebae5506f1 expression: fix typos (#14797) 2020-02-15 17:18:00 +08:00
1d641955d5 expression: disable int_col <cmp> non-int const folding for plan cache (#14120) 2020-01-15 18:42:20 +08:00
c36f83e1b4 expression,table: fix insert partitioned table bug when the time zone change (#14370) 2020-01-14 17:41:21 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +08:00
a232ce3d40 fix document url (#13939) 2019-12-06 12:40:54 +08:00
f996816eb7 expression : fix function 'binSearch' in builtinIntervalRealSig not return error (#12957) 2019-11-27 13:59:56 +08:00