381 Commits

Author SHA1 Message Date
3994683c4f expression: fix column type inference for AES_ENCRYPT in views (#65538)
close pingcap/tidb#65530
2026-01-13 15:03:26 +00:00
57ad856292 expression: UUID_VERSION() and UUID_TIMESTAMP() pushdown to TiKV (#65349)
close pingcap/tidb#65348
2026-01-13 15:03:08 +00:00
tpp
0bbbbbe47b planner: suppress column number in plan_tree explain (#65148)
ref pingcap/tidb#63118
2026-01-08 19:07:47 +00:00
34db659899 expression: reserve exact space for UUIDs (#65365)
close pingcap/tidb#65364
2026-01-07 11:07:26 +00:00
bedae51b62 expression: Vectorized versions of new UUID functions (#65301)
ref pingcap/tidb#61982
2026-01-06 19:53:17 +00:00
a9e15ac03a expression: make location case insensitive for GET_FORMAT (#65240)
close pingcap/tidb#59420
2025-12-31 14:08:59 +00:00
9ce91e4518 expression: fix handling of zero month/day in DATE function (#65150)
close pingcap/tidb#59417
2025-12-30 13:09:38 +00:00
c4d80255cf expression: lazy init bufAllocator in baseBuiltinFunc (#65244)
ref pingcap/tidb#65003
2025-12-27 01:09:26 +00:00
7dea15e880 expression: support newer UUID types (#65007)
close pingcap/tidb#61982
2025-12-24 18:05:55 +00:00
4915482a36 *: use IsColOpCol to remove the same code (#65144) 2025-12-22 10:08:23 +00:00
e0803fa0a1 expression, planner: fix ambiguous column name in overflow error message (#64887)
close pingcap/tidb#17993
2025-12-19 16:59:38 +00:00
6540abdf82 sessiontxn/staleread: don't overwrite StaleTSOProvider for single statement (#65110)
close pingcap/tidb#65090
2025-12-18 15:55:05 +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
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