Commit Graph

355 Commits

Author SHA1 Message Date
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
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
45de54a3b7 expression/parser: Cleanup MASTER_POS_WAIT (#60928)
close pingcap/tidb#60927
2025-06-12 19:16:43 +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
fa3c79b408 br: enable parallel restore (#58724)
close pingcap/tidb#58725
2025-06-03 02:36:14 +00:00
e7b038b991 expression: deduplicate the args of IN function (#61249)
close pingcap/tidb#61246
2025-05-31 02:22:14 +00:00
ff4e01dfae planner, executor: clone the field type for correlated column when setting the EnumSetAsIntFlag flag. (#61412)
close pingcap/tidb#61389
2025-05-30 06:55:52 +00:00
69ea78a085 expression: avoid calling strings.ToLower frequently (#61385)
close pingcap/tidb#61375
2025-05-29 10:09:07 +00:00
3cdf5954a7 expression: refine code in IsPushDownEnabled (#61392)
ref pingcap/tidb#61375
2025-05-29 08:36:19 +00:00
d278fffc9d expression: refactor expression.Contains to improve performance (#61374)
close pingcap/tidb#61373
2025-05-28 10:01:49 +00:00
73673086c0 expression: introduce new function for JSON array (#60728)
ref pingcap/tidb#60649
2025-05-27 09:58:49 +00:00
7702f73bee expression: Timestamp literal with time zone offset (#57845)
close pingcap/tidb#51742
2025-05-26 02:46:25 +00:00
4012a7439a expression: gopls modernize (#60791)
close pingcap/tidb#60790
2025-05-06 14:03:42 +00:00