Commit Graph

121 Commits

Author SHA1 Message Date
a64de14f10 planner: constant propagation can deal with anti semi join (#62539)
close pingcap/tidb#62536
2025-08-01 10:52:15 +00:00
c7003d8d65 planner: Implement ignore_plan_cache hint for non-prepared statements. (#62641)
close pingcap/tidb#62634
2025-07-30 05:50:37 +00:00
312226f869 types: fix CASE WHEN wrong result when prepare value is NULL (#62568)
close pingcap/tidb#62564
2025-07-28 11:18:09 +00:00
771012e6f3 planner: constant propagation supports more join type in the logical plan builder (#61909)
close pingcap/tidb#51700
2025-07-18 10:27:49 +00:00
0c6cbc13c9 planner: fix the issue that the group by check not allow cast expr in both projection and group by (#62354)
close pingcap/tidb#62350
2025-07-14 05:54:42 +00:00
b475e1213b planner: apply predicate simplification before extract condition (#62211)
close pingcap/tidb#62212
2025-07-07 10:20:33 +00:00
1a3bb653a6 planner: remove the selection above the table dual (#62193)
close pingcap/tidb#62192
2025-07-04 06:13:06 +00:00
4c9e2eaa15 planner: avoid string type's collate affecting predicate simplification (#62141)
close pingcap/tidb#62019
2025-07-02 21:37:51 +00:00
ce538d6759 planner: fix PointGetPlan.PrunePartitions function works with non-binary collate (#62002)
close pingcap/tidb#59827, close pingcap/tidb#61965
2025-06-28 08:04:30 +00:00
d7bad0cb18 planner: fix prune null value in in function for range partition (#61807)
close pingcap/tidb#61726
2025-06-19 03:37:51 +00:00
998279fef1 planner: index join banned the enforced sort from stream agg, which is not supported in executor layer now. (#61324)
close pingcap/tidb#61323
2025-05-27 05:40:58 +00:00
fb627a3fa2 planner: fix new index join build forget to convert cop to root when prop require rootTaskType (#61275)
close pingcap/tidb#61272
2025-05-23 15:21:25 +00:00
bf9fbde9e9 planner: add variable control for index join build v2 and default them on (#60592)
close pingcap/tidb#60106
2025-05-21 08:34:46 +00:00
07333a947f planner: Enable the non-prepared plan cache for queries with bindings. (#61048)
close pingcap/tidb#61047
2025-05-09 23:53:21 +00:00
15c9cb797a planner: fix wrong TopN's ByItem with expression.ScalarFunction when to PushDownTopN (#60822)
close pingcap/tidb#60655
2025-05-07 17:23:49 +00:00
7137c575bb planner: add brief format for some explain test result. (#60992)
ref pingcap/tidb#60106
2025-05-07 11:37:23 +00:00
d85884c569 planner: use brief format to record explain test result in integration-test. (#60980)
ref pingcap/tidb#60106
2025-05-06 15:27:45 +00:00
f31534234a planner,indexjoin: Fix the panic of indexjoin + streamagg (#60852)
close pingcap/tidb#60297
2025-04-27 06:55:54 +00:00
55a1fa25b3 planner: add back children's Schema when checking LogicalJoin's used columns in column pruning (#60694)
close pingcap/tidb#60692
2025-04-23 07:54:56 +00:00
22f4110211 planner: add comments style hints check for the fast path (#60516)
close pingcap/tidb#59427
2025-04-15 11:20:22 +00:00
3bbd678ef6 planner: report error when subquery doesn't has an alias (#60159)
close pingcap/tidb#60112
2025-03-19 06:29:08 +00:00
89cab6ace1 Planner: Run full partition pruning if convertToPointGet converted keys to SortKey (#59918)
close pingcap/tidb#59827
2025-03-12 01:56:03 +00:00
fd7f07f5f2 planner: remove duplicate offset when push down pure limit down across outer join (#59927)
close pingcap/tidb#59926
2025-03-06 21:23:44 +00:00
163c4bed8f planner: don't choose merge join unless there's hint or join key fully matched (#59933)
close pingcap/tidb#20710
2025-03-06 06:29:26 +00:00
ad82e3a5c5 planner: change the cascades explain test as explain with brief format. (#59745)
ref pingcap/tidb#51664
2025-02-26 05:47:10 +00:00
f66e8b1e79 planner: fix the possible panic when fixcontrol#44855 enabled (#59763)
close pingcap/tidb#59762
2025-02-26 02:35:03 +00:00
72a1145688 *: Disable non-ga hash join types in hash join v2 (#59505)
ref pingcap/tidb#53127
2025-02-14 11:31:25 +00:00
ed9b7d5771 planner: fix planner can't error for union-all query when new-only-full-group-check is enabled (#59212)
close pingcap/tidb#59211
2025-02-12 14:43:12 +00:00
07ccf7cdce planner: remove redundant branches in the OR list (#58962)
close pingcap/tidb#58998
2025-01-23 04:43:35 +00:00
ea5beb8a37 planner: Handle _tidb_rowid correctly in batchPointGet Plan to avoid index out of range error (#58687)
close pingcap/tidb#58581
2025-01-14 03:11:01 +00:00
6d2a05e902 planner: add cascades wrapper for integrating cascades into current logical optimization phase. (#58751)
ref pingcap/tidb#51664
2025-01-13 06:11:31 +00:00
1b2a23526c planner: add cascades portal for later optimization. (#58536)
ref pingcap/tidb#51664
2024-12-25 12:25:08 +00:00
e1c78f239c tests: update mysql-tester and fix some syntax problem (#58464) 2024-12-25 09:35:15 +00:00
d0ea9e50d5 planner: prepare AccessPath.PartialAlternativeIndexPaths to handle MV indexes (#58397)
ref pingcap/tidb#58361
2024-12-21 05:22:27 +00:00
e53ec591b2 planner: extend predicate simplification for subquery and nested expressions (#58261)
close pingcap/tidb#58171
2024-12-20 18:59:39 +00:00
edba7e9ccb planner: Add left side operator info for hash join execution summary (#57814)
ref pingcap/tidb#56233, close pingcap/tidb#57819
2024-12-03 09:11:47 +00:00
a9c5201884 planner: address collation ambiguity in scalar function construction during predicate simplification. (#57049)
close pingcap/tidb#56479
2024-11-18 04:46:11 +00:00
ed2d749bc1 planner: Fix predicate simplification panic caused by zero-argument expressions like rand() (#56947)
close pingcap/tidb#56270
2024-11-14 10:50:38 +00:00
1c386db025 util/collate, util/ranger: move and update IsPadSpaceCollation() (#56970) 2024-10-29 14:41:04 +00:00
cc370993fe cardinality: remove the unnecessary limitation that the "exponential backoff" entry stats can't use iteself for estimation (#56850)
close pingcap/tidb#56915
2024-10-28 18:47:31 +00:00
3f0514eb6b planner, table: list partition support prune non point range (#56725)
close pingcap/tidb#56673
2024-10-25 06:59:32 +00:00
tpp
abf7e31bf8 planner: enable fix control for enforced (#56414)
close pingcap/tidb#46177
2024-10-22 18:16:06 +00:00
64ef4ddb04 tests: move one strange flaky test back to unit test (#56729) 2024-10-19 02:13:56 +00:00
55b3e37c7c Makefile: add gotag for make server_check (#51057) 2024-10-18 13:42:57 +00:00
fa723c3bd5 planner, CTE, view: Fix default inline CTE which contains orderby/limit/distinct and inside of view (#56609)
close pingcap/tidb#56582, close pingcap/tidb#56603
2024-10-15 11:02:28 +00:00
10647c9d73 statstics: avoid unnecessary try when to sync load (#56614)
close pingcap/tidb#56472
2024-10-14 08:55:34 +00:00
0eccf7957b planner: merge FullSchema and FullNames of subplans when rewriting "in (subquery)" to inner join (#54334)
close pingcap/tidb#53766
2024-10-10 07:16:40 +00:00
3cb22d6a8a Optimizer : Add OR pruning to predicate simplification (#56136)
close pingcap/tidb#56005
2024-09-25 18:41:12 +00:00
2ef0a36f71 *: Removed tidb_enable_list_partition (#42846)
close pingcap/tidb#42842
2024-09-25 00:24:19 +00:00
0442c68e1c *: Deprecated and always set to ON tidb_enable_global_index (#56169)
ref pingcap/tidb#45133
2024-09-24 22:59:43 +00:00