57 Commits

Author SHA1 Message Date
4915482a36 *: use IsColOpCol to remove the same code (#65144) 2025-12-22 10:08:23 +00:00
91a2277e0e expression: keep the same order of scalarFunction's args when to prepagate constant (#64927)
close pingcap/tidb#64924
2025-12-09 13:04:11 +00:00
0230916041 *: extract column into map in the constant propagation (#64121)
close pingcap/tidb#64128
2025-10-30 05:02:34 +00:00
3a54eaa3ff planner: fix LogicalProjection.DeriveStats allocate too many memories (#63829)
close pingcap/tidb#63810
2025-10-09 14:34:54 +00:00
73ee7e2d2b expression: fix unexpected modification of shared return type of cast expr (#63072)
close pingcap/tidb#60093
2025-08-20 08:06:05 +00:00
c8792889dc planner: push down not operator when to simplify predicate (#62943)
close pingcap/tidb#62923
2025-08-13 10:46:21 +00:00
8aa5f5f4c4 expression: simplify the code with the ExtractColumnsFromExpressions (#62825)
ref pingcap/tidb#45839
2025-08-06 06:47:30 +00:00
2a522358ce planner,expression: remove duplicates in the ExtractColumnsFromExpressions (#62791)
ref pingcap/tidb#45839
2025-08-04 13:00:27 +00:00
def18e5ac9 expression: truncate decimal instead of return error for PrepStmt (#62792)
close pingcap/tidb#62602
2025-08-04 11:40:25 +00:00
eb12403896 *: replace make then copy to slices.Clone (#62544)
close pingcap/tidb#62543
2025-07-31 12:27:55 +00:00
674fe1e00c expression: change log level for ColumnSubstitution's error message (#62605)
close pingcap/tidb#62608
2025-07-24 09:42:49 +00:00
9accc3cfa3 planner: Fix expression rewriting and method signature mismatch in plan cache (#58506)
close pingcap/tidb#56772
2025-07-08 05:01:27 +00:00
cc37d0d3b0 expression: skip empty or one expression in the RemoveDupExprs (#62114)
ref pingcap/tidb#62121
2025-07-01 13:05:41 +00:00
c597cb5e0a expression,planner: reuse the PropConstSolver to improve performance (#61838)
close pingcap/tidb#61837
2025-06-20 07:35:06 +00:00
9f38fcae00 planner,executor: improve the convenience of functions (#61546)
ref pingcap/tidb#36764
2025-06-06 08:57:06 +00:00
92925e9689 planner: fix wrongly skip plan cache with predicate simplification (#61515)
close pingcap/tidb#61513
2025-06-06 05:40:38 +00:00
d278fffc9d expression: refactor expression.Contains to improve performance (#61374)
close pingcap/tidb#61373
2025-05-28 10:01:49 +00:00
4012a7439a expression: gopls modernize (#60791)
close pingcap/tidb#60790
2025-05-06 14:03:42 +00:00
a10565bb10 Planner: add a column to save distance results from vector index in TopN plan. (#60544)
ref pingcap/tidb#54245
2025-04-18 14:02:10 +00:00
f689bd6465 expression: Add failpoint to force pushdown expression to tikv for debug usage (#59765)
ref pingcap/tidb#51876
2025-02-26 10:31:58 +00:00
fa0bc8e5bc planner: change more conditions that are always false to dual (#59199)
close pingcap/tidb#51446
2025-02-07 11:21:34 +00:00
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