Commit Graph

36 Commits

Author SHA1 Message Date
8c4bab1963 *: upgrade go1.23.2 (#51126)
close pingcap/tidb#50765
2024-10-09 05:15:46 +00:00
68fdf55d94 *: rename some packages of context (#56108)
close pingcap/tidb#56107
2024-09-19 07:11:03 +00:00
e471433601 *: Refactor param.ExecArgs from pkg param to pkg expression. (#55784) 2024-09-13 09:21:19 +00:00
e0864c6cf1 expression: let cast function supports explicit set charset (#55724)
close pingcap/tidb#55677
2024-09-10 10:25:23 +00:00
509d1bd93b expression: expression.BuildSimpleExpr supports to build ParamMarker (#55493)
close pingcap/tidb#55492
2024-08-19 11:09:11 +00:00
f5ac1c4a45 *: support tidb_redact_log for explain (#54553)
close pingcap/tidb#54565
2024-07-23 08:45:04 +00:00
5909899601 expression,*: remove the session context inside ParamMarker (#53534)
close pingcap/tidb#53533
2024-07-03 07:44:58 +00:00
521c99967d planner: The length function could not be substitute when collation of mapped column is utfxxx_bin (#54179)
close pingcap/tidb#53730
2024-06-27 03:19:23 +00:00
c91bc2014a planner: classsify logical aggregation logic into a seperate file for later pkg move (#54187)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-06-25 10:32:51 +00:00
b96a775753 Optimizer: Fix range extraction for CNF(conjunctive normal form) (#53908)
ref pingcap/tidb#41598
2024-06-14 05:13:13 +00:00
d5e9c6e949 planner,expression: Limit projection pushed down scope to avoid potential performance degression (#53650)
close pingcap/tidb#53613
2024-06-04 09:52:26 +00:00
5e6df4eeb1 expression, *: Eval param get type with context (#53656)
close pingcap/tidb#53653
2024-06-03 09:39:01 +00:00
3d68bd2124 expression: fail ColumnSubstituteImpl if creating function returns error (#53716)
close pingcap/tidb#53580, close pingcap/tidb#53582, close pingcap/tidb#53594, close pingcap/tidb#53603
2024-06-03 08:55:24 +00:00
68219b9317 *: fix some typos in code comments (#53371) 2024-05-20 08:01:16 +00:00
acdb6f58e3 planner: UPDATE's select plan's output col IDs should be stable (#53268)
close pingcap/tidb#53236
2024-05-14 14:17:42 +00:00
17d3f7fd45 planner: small refactor for plan cache (#53028)
ref pingcap/tidb#50618
2024-05-06 09:04:07 +00:00
cfbabfa705 stmtctx: use a standalone RangeFallbackHandler (#52738)
close pingcap/tidb#52737
2024-04-22 13:04:39 +00:00
4ab889cd6a expression: Add InInsertOrUpdate in BuildContext and remove GetSessionVars (#52528)
close pingcap/tidb#52366
2024-04-17 10:52:37 +00:00
1905e8973c expression: add some methods in BuildContext to read fields in SessionVars before (#52367)
close pingcap/tidb#52366
2024-04-09 02:39:20 +00:00
482ce59bf6 expression: separate BuildContext and EvalContext (#52311)
close pingcap/tidb#52310
2024-04-03 09:42:24 +00:00
311eef9d03 expression: introduce SessionEvalContext to implement EvalContext (#52091)
close pingcap/tidb#52089
2024-03-26 09:42:54 +00:00
639fa0073f expression: finish to remove SessionVars and other complex objects from EvalContext (#52015)
close pingcap/tidb#51477
2024-03-25 10:24:47 +00:00
54cca35e62 planner: choose to generate optimal plans without plan cache rather than generating suboptimal plans and caching it when generating MVIndex plans (#51546)
ref pingcap/tidb#45798
2024-03-07 11:51:35 +00:00
cc0387b1a3 expression: expose some basic fields to expression.EvalContext (#51420)
close pingcap/tidb#51419
2024-03-04 03:39:33 +00:00
c5eced17d0 expression: remove direct dependencies with sessionctx.Context for package expression (#51025)
close pingcap/tidb#51024
2024-02-08 02:10:15 +00:00
a0296bebe3 planner: stop pushing Agg down through Projection if substitution fail (#50932)
close pingcap/tidb#50926
2024-02-04 06:56:49 +00:00
ff050bb143 expression: add expression.BuildContext to build expressions (#50662)
close pingcap/tidb#50661
2024-01-29 11:27:22 +00:00
51e1e13494 *: update interface{} to any (#50770)
ref pingcap/tidb#50765
2024-01-29 07:21:29 +00:00
87f8355e45 expression: ConstItem => ConstLevel to provide more clear semantics (#49807)
close pingcap/tidb#49806
2023-12-28 04:10:59 +00:00
e14f66f286 expression: introduce EvalContext to evaluate expression (#49416)
close pingcap/tidb#49415
2023-12-13 12:12:27 +00:00
ccbd1b5749 expression: replace EvalWithInnerCtx with Eval for PbConverter and ExplainInfo (#48917)
close pingcap/tidb#48914
2023-11-27 10:36:00 +00:00
8243680d8a planner: avoid to use ScalarFunction.GetCtx in some planner codes (#48794)
close pingcap/tidb#48793
2023-11-24 05:47:44 +00:00
7985dc4b46 expression: add method CanonicalHashCode to Expression to decouple it with stmtctx (#48666)
close pingcap/tidb#48665
2023-11-23 11:02:43 +00:00
9062834986 expression: add ctx to expression.Eval (#48609)
close pingcap/tidb#48608
2023-11-22 05:29:40 +00:00
184aa7e3c3 planner: fix the issue that plan cache may return wrong result when comparing datetime column with unix_timestamp (#48413)
close pingcap/tidb#48165
2023-11-08 16:41:12 +00:00
318e82bbb7 *: move most of the packages to 'pkg' (#47123)
ref pingcap/tidb#41241
2023-10-13 14:36:26 +00:00