Commit Graph

369 Commits

Author SHA1 Message Date
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
9b517a1b66 expression: replace equal condition by true when to constant propagation (#64309)
close pingcap/tidb#64216
2025-11-26 09:04:17 +00:00
47d17123d6 expression,planner: move planner-specific functions out of expression (#64675)
ref pingcap/tidb#63856
2025-11-26 01:16:05 +00:00
a97f75ba4b expression,planner: gather both prefix and full index columns at once (#64484)
ref pingcap/tidb#63856
2025-11-21 23:10:05 +00:00
384fb211f7 expression: support more locales for FORMAT() (#64316)
ref pingcap/tidb#56167
2025-11-12 07:08:53 +00:00
f2b47508d9 expression: explore all possibilities of tryToReplaceCond as much as possible (#64322)
close pingcap/tidb#64325
2025-11-07 14:43:17 +00:00
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
0230916041 *: extract column into map in the constant propagation (#64121)
close pingcap/tidb#64128
2025-10-30 05:02:34 +00:00
4f50b53c03 expression: refactor IndexInfo2{,Prefix}Cols into a common helper function (#64054)
ref pingcap/tidb#63856
2025-10-21 15:39:10 +00:00
42b8bcc2ee range: reuse memory in the ExtractEqAndInCondition (#64036)
close pingcap/tidb#64035
2025-10-20 08:29:55 +00:00
617c3cffe1 expression: improve ScalarFunction performance (#63910)
close pingcap/tidb#63909
2025-10-11 15:41:51 +00:00
xhe
9a39320b2e sysvar: add internal session flag (#63709)
close pingcap/tidb#63708
2025-10-10 09:12:38 +00:00
8e509eb168 expression: add items in the bench daily for expression (#63883)
ref pingcap/tidb#63809
2025-10-10 04:43:45 +00:00
3a54eaa3ff planner: fix LogicalProjection.DeriveStats allocate too many memories (#63829)
close pingcap/tidb#63810
2025-10-09 14:34:54 +00:00
f8a207ce90 expression: don't allocate column every time when to newLocalColumnPool (#63864)
ref pingcap/tidb#63809
2025-10-09 09:59:45 +00:00
xhe
12bbfbcc94 *: add SET INSTANCE syntax (#63484)
close pingcap/tidb#63483
2025-09-15 04:46:09 +00:00
b704aa49be planner: Show Execution Plans for Scalar Subqueries (#63047)
close pingcap/tidb#63045
2025-09-11 15:48:15 +00:00
d022959e78 planner: keep join keys for join optimization in constant propagation (#63404)
close pingcap/tidb#60076, close pingcap/tidb#63314
2025-09-10 02:07:48 +00:00
1dedb8a696 planner: fix return type was modified unexpectedly when building cast (#63387)
close pingcap/tidb#63382
2025-09-08 12:07:03 +00:00
307a2c7686 planner: refactor some code related to constant propagation for join (#63388)
ref pingcap/tidb#63314
2025-09-05 12:55:36 +00:00
98c6801f28 expression: constant skip the push-down check when to propagate constant (#63376)
close pingcap/tidb#63374
2025-09-05 07:31:48 +00:00
f9d7c6837c expression: add cast for eq expr when doing constant propagation (#63327)
close pingcap/tidb#57247
2025-09-04 06:38:00 +00:00
02d38ee4d0 planner: PropagateConstant can remove useless push down conditions (#63061)
close pingcap/tidb#62991
2025-08-28 04:32:46 +00:00
8c88b61875 tests: fix unit tests for next-gen (#62895)
ref pingcap/tidb#61702
2025-08-20 19:51:02 +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
259852d340 *: add the new SEMv2 config and implement most of the functions (#61634)
close pingcap/tidb#61582, close pingcap/tidb#61583, close pingcap/tidb#61584, close pingcap/tidb#61585
2025-08-18 13:38:47 +00:00
xhe
bc0d97a44d variable: change tidb_redact_log to global variable (#62892)
close pingcap/tidb#62890
2025-08-16 04:03:47 +00:00
a6b139988d planner: fix PropagateConstant create useless expression (#62864)
close pingcap/tidb#45839
2025-08-14 12:40:12 +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
3111820b2c refactor: use slices.Contains to simplify code (#62880) 2025-08-08 16:08:36 +00:00
8aa5f5f4c4 expression: simplify the code with the ExtractColumnsFromExpressions (#62825)
ref pingcap/tidb#45839
2025-08-06 06:47:30 +00:00
a634b983c5 fix: close issue #59428 to sec_to_time binary same as mysql (#62239)
close pingcap/tidb#59428
2025-08-06 01:00:48 +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
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
a64de14f10 planner: constant propagation can deal with anti semi join (#62539)
close pingcap/tidb#62536
2025-08-01 10:52:15 +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
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
2f4f559b83 fix: close issue 59446 make oct("") same as mysql (#61767)
close pingcap/tidb#59446
2025-07-15 02:10:51 +00:00
a957b33018 expr: Execute checkOrInit before constant folding (#62320)
ref pingcap/tidb#45756
2025-07-10 05:04:51 +00:00
3c2dc46853 expression: fix the length of casting from INT/REAL/DECIMAL/.... to string (#61476)
close pingcap/tidb#61350
2025-07-09 12:32:06 +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
1cbda9879e fix: close issue 59457 by trim compare first (#61915)
close pingcap/tidb#59457
2025-07-08 02:19:54 +00:00
063fa72687 planner: lift the can-push-to-cop check of aggregation/proj (#62068)
ref pingcap/tidb#62006
2025-07-03 13:35:00 +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
cd0965a3a8 fix: close issue #59456 make it same as mysql (#62010)
close pingcap/tidb#59456
2025-06-30 05:34:45 +00:00
339f07ae8f expression, ddl: remove useless code (#62000) 2025-06-27 06:17:30 +00:00
642b2c8f02 expression,planner: reuse the propOuterJoinConstSolver to improve performance (#61913)
close pingcap/tidb#61837
2025-06-23 16:03:24 +00:00
1abbbf02de session: rename GetDomainInfoSchema to GetLatestInfoSchema (#61894)
ref pingcap/tidb#61702
2025-06-23 10:09:21 +00:00