48 Commits

Author SHA1 Message Date
f6aa990842 expression: Clone scalar function when to check the equivalence of the expression (#64298)
close pingcap/tidb#64156
2025-11-07 06:03:25 +00:00
617c3cffe1 expression: improve ScalarFunction performance (#63910)
close pingcap/tidb#63909
2025-10-11 15:41:51 +00:00
f8def628ed expression: avoid copying the hashcode to prevent forgetting to update the hashcode when updating the expression later (#61933)
close pingcap/tidb#62121
2025-08-04 10:44:57 +00:00
eb12403896 *: replace make then copy to slices.Clone (#62544)
close pingcap/tidb#62543
2025-07-31 12:27:55 +00:00
a16aedeb9f planner: fix expand operator shouldn't keep child keys && fix grouping function forget to encode their func meta (#62558)
close pingcap/tidb#62551
2025-07-23 14:42:14 +00:00
a957b33018 expr: Execute checkOrInit before constant folding (#62320)
ref pingcap/tidb#45756
2025-07-10 05:04:51 +00:00
c597cb5e0a expression,planner: reuse the PropConstSolver to improve performance (#61838)
close pingcap/tidb#61837
2025-06-20 07:35:06 +00:00
35c1e21115 planner,expression: fix wrong copy args to avoid breaking origin expression when to EvaluateExprWithNull (#61630)
close pingcap/tidb#60625
2025-06-13 10:59:49 +00:00
b2f2faaa95 parser: move 'model' to 'ast' pkg (#58704)
ref pingcap/tidb#54436
2025-01-07 10:20:04 +00:00
dcec06a74b *: tiny optimize by avoid sprintf (#58285)
ref pingcap/tidb#56649
2024-12-16 12:11:13 +00:00
c5e9cc77e6 planner: Fix the issue where any(nil) is not considered equal to nil (#57428)
close pingcap/tidb#57326
2024-11-20 06:17:38 +00:00
f2385404df expression: introduce SafeToShareAcrossSession to Expression for Instance Plan Cache (#57110)
ref pingcap/tidb#54057
2024-11-05 09:37:46 +00:00
55b3e37c7c Makefile: add gotag for make server_check (#51057) 2024-10-18 13:42:57 +00:00
68fdf55d94 *: rename some packages of context (#56108)
close pingcap/tidb#56107
2024-09-19 07:11:03 +00:00
e0864c6cf1 expression: let cast function supports explicit set charset (#55724)
close pingcap/tidb#55677
2024-09-10 10:25:23 +00:00
4ab1765ac9 planner: introduce hashEquals interface for expression.Expression (#55793)
ref pingcap/tidb#51664
2024-09-09 10:40:45 +00:00
48989e726f *: Vector Data types and Functions (#55550)
ref pingcap/tidb#54245
2024-08-22 07:01:51 +00:00
3fd284b025 planner: add more test cases for Plan Clone (#55011)
ref pingcap/tidb#54057
2024-07-30 11:44:47 +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
1a24c03212 expression: correct the erroneous scalar function equivalence check (#54067)
close pingcap/tidb#53726
2024-06-19 12:10:17 +00:00
5e6df4eeb1 expression, *: Eval param get type with context (#53656)
close pingcap/tidb#53653
2024-06-03 09:39:01 +00:00
4674b125fc expression: fix charset conversion warning and error behavior (#51191)
close pingcap/tidb#50295
2024-05-13 07:23:41 +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
fdcecc40f0 expression: use assertionEvalContext to check some constraints in runtime (#52141)
close pingcap/tidb#52140
2024-04-01 10:48:17 +00:00
1469e3dbf4 extension: disable some optimizations for extension function (#51926)
close pingcap/tidb#51925
2024-03-20 08:32:20 +00:00
cc0387b1a3 expression: expose some basic fields to expression.EvalContext (#51420)
close pingcap/tidb#51419
2024-03-04 03:39:33 +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
9416934ea3 *: split planner errors and remove duplicate definitions (#50695)
ref pingcap/tidb#48875
2024-01-26 09:42:21 +00:00
c47f4c9146 expression: wrap some read action in EvalContext to functions (#50530)
ref pingcap/tidb#49090
2024-01-22 06:52:49 +00:00
87f8355e45 expression: ConstItem => ConstLevel to provide more clear semantics (#49807)
close pingcap/tidb#49806
2023-12-28 04:10:59 +00:00
20d394d714 expression: fix null type infer for function ROW (#49525)
close pingcap/tidb#49015
2023-12-26 08:30:28 +00:00
82a011fdd8 expression: refactor expression pkg's warning and note generation logic (#49686)
close pingcap/tidb#49291
2023-12-22 07:05:09 +00:00
074af1082d expression: use a bool arg for Expression.ConstItem (#49495)
close pingcap/tidb#49492
2023-12-15 08:40:56 +00:00
eb69dacc6e expression: remove interface expression.ReverseExpr (#49468)
close pingcap/tidb#49467
2023-12-14 10:43:51 +00:00
e14f66f286 expression: introduce EvalContext to evaluate expression (#49416)
close pingcap/tidb#49415
2023-12-13 12:12:27 +00:00
fd92230588 expression: remove inner context cache in expression.ScalarFunction (#48940)
close pingcap/tidb#48916
2023-11-28 03:10:16 +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
2f2f916926 expression: always use the ctx in parameter for method Equal in all expressions (#48596)
close pingcap/tidb#48595
2023-11-17 05:09:47 +00:00
625dc4e3cd expression: use parameter ctx to do evaluate instead of the inner one for all builtinFuncs (#48409)
close pingcap/tidb#48408
2023-11-14 12:38:16 +00:00
9d07f83132 expression: add ctx to all eval methods of builtinFunc (#48331)
close pingcap/tidb#48338
2023-11-07 10:29:18 +00:00
90bd2dde4d stmtctx, *: change TypeCtx field to a private field (#47742)
close pingcap/tidb#47698, close pingcap/tidb#47752
2023-10-19 05:22:59 +00:00
3ef01b5882 types, *: move truncate flags to the types context (#47522)
close pingcap/tidb#47511
2023-10-18 05:15:29 +00:00
318e82bbb7 *: move most of the packages to 'pkg' (#47123)
ref pingcap/tidb#41241
2023-10-13 14:36:26 +00:00