Commit Graph

39 Commits

Author SHA1 Message Date
ae65cae8d0 expression: fix wrong caseWhen function for enum type (#29454) 2021-11-05 15:27:06 +08:00
6c109c91f7 planner: forbid constant fold when plan cache enable (#28790) 2021-10-14 17:33:27 +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
054ebd80bc expression: fold constant should keeps the original charset and collation (#27533) 2021-09-01 13:04:13 +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
920b70d97c planner: set right null flag for constant value (#23172) 2021-03-12 16:10:55 +08:00
cdcb0ffa34 expression: fix unexpected panic when doing isNullRejected check (#22173) 2021-01-11 10:55:17 +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
462a53f79a expression: utilize the flag of column arguments to simplify expressions (#20149) 2020-10-09 14:43:11 +08:00
c022fdcaeb expression: avoid unnecessary warnings/errors when folding constants in control expr (#19675)
* reduce unnecessary warnings/errors in constrant fold

* update formate

* add commits

Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-09 20:08:50 +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
fe6ca65414 expression: implement the Coercibility() function (#14739) 2020-02-13 19:15:48 +08:00
43202b1383 expression, ranger: three optimizations to speedup some specific query's opt time (#12687) 2019-10-29 18:00:45 +08:00
4cd5d15d97 *: improve plan cache param eval and insert const (#10746) 2019-08-27 11:11:01 +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
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
e13181f8a7 planner: fix stack overflow caused by folding constant (#10174) 2019-04-18 15:00:54 +08:00
ba26012231 expression: using pingcap/log and unify the log format (#9507) 2019-03-14 19:05:27 +08:00
0ffb2f612c expression: refactor constant folding for IF&IFNULL (#9094) 2019-02-19 11:41:59 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
1c165df39b expression: maintain DeferredExpr in aggressive constant folding. (#7915) 2018-10-17 13:34:19 +08:00
7b4686d8c2 expression, plan: aggressive constant fold for null parameter expression to simplify outer join (#7696) 2018-09-23 19:46:52 +08:00
06021c7cfe remove types.Row interface (#7170) 2018-07-27 13:45:03 +08:00
66c41128ca expression: improve constant folding of UDF if & ifnull (#6677) 2018-06-07 11:38:57 +08:00
f1e89cde19 *: use lower-case of github.com/sirupsen/logrus (#5400)
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus

* vendor: update pd

* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
0306bb0070 tidb: support a plan cache for prepared statements (#3956)
* tidb: support a plan cache for prepared statements
2017-10-24 00:55:51 -05:00
60626912a7 expression, plan: remove "foldable" from "baseBuiltinFunc" (#4759) 2017-10-12 04:03:54 -05:00
e11c4fbaad expression, plan: improve fold constant (#4721)
* improve fold constant

* remove useless code

* remove useless argument

* address comment
2017-10-09 17:43:13 +08:00
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00
f0aad43fec expression: change isDeterministic to canBeFolded (#4393) 2017-08-31 20:35:13 +08:00
93b7aa285a expression: rewrite builtin function: HOUR, MINUTE, SECOND, MICROSECOND (#4183) 2017-08-16 13:36:07 +08:00
006436a14a expression: use isDeterministic interface. (#2570) 2017-01-30 15:42:45 +08:00
e68dcf77dc *: remove ctx from function args. (#2566) 2017-01-28 18:44:02 +08:00
96ee4446e3 *: refactor function. (#2499) 2017-01-22 18:10:38 +08:00
a28ab3eb73 *: add GetArgs interface (#2343) 2016-12-29 19:10:01 +08:00
453a95ce8c *: merge packages of evaluator and expression. (#2322) 2016-12-26 12:35:29 +08:00
0b828d46f8 *: add context in baseplan, extract constant folder. (#2135) 2016-12-01 00:17:55 +08:00