Commit Graph

1119 Commits

Author SHA1 Message Date
10c9872c78 planner: Allow prepared and non-prepared queries with set_var and resource_group hints to be cached. (#62367)
close pingcap/tidb#60920
2025-07-14 11:33:06 +00:00
19e1efaa01 planner: refactor physical optimization to receive group as parameter and enumerate plans based on group (#61244)
ref pingcap/tidb#62328
2025-07-14 08:25:21 +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
3e2def6179 planner: fix sql with static partition pruning mode got nil pointer error (#62381)
close pingcap/tidb#62331
2025-07-14 03:02:06 +00:00
c765578a11 planner: remove empty selection (#62332)
close pingcap/tidb#62240
2025-07-13 19:49:27 +00:00
db81dee5ed crossks: forbid cross ks session to access user tables and run DDL (#62270)
ref pingcap/tidb#61702
2025-07-11 06:39:39 +00:00
a712249d45 planner: move physical selection related logic into physical op (#62339)
ref pingcap/tidb#52714
2025-07-10 09:55:21 +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
fe8d82fedd planner: move all physical topN related logic into physical op. (#62250)
ref pingcap/tidb#52714
2025-07-09 10:52:03 +00:00
6b7a0ed5b6 planner: use prop based noCopPushDown mechanism to replace aggregation field. (#62249)
ref pingcap/tidb#62006
2025-07-08 03:18:48 +00:00
81370d4c72 planner: add skew risk ratio for range pred (#62035)
close pingcap/tidb#62093
2025-07-07 20:32:30 +00:00
0cd280bbd2 meta: unify definition of system or memory DB name (#62247)
ref pingcap/tidb#61702
2025-07-07 19:17:48 +00:00
d87ec2b188 planner: RegardNULLAsPoint should be true as default (#62194)
close pingcap/tidb#62196
2025-07-07 11:09:00 +00:00
b475e1213b planner: apply predicate simplification before extract condition (#62211)
close pingcap/tidb#62212
2025-07-07 10:20:33 +00:00
ee9f2305ba planner: deprecate the logical interface CanPushToCop and its implementation canPushToCopImpl. (#62235)
ref pingcap/tidb#62006
2025-07-07 07:15:27 +00:00
5968f818bf planner: lift the canPushToCop check of logical join/window/selection (#62206)
ref pingcap/tidb#62006
2025-07-07 02:39:57 +00:00
a5b09b54ad planner: change casetest instance-plan-cache test timeout. (#62195) 2025-07-04 13:08:06 +00:00
b7694f40e5 planner: remove data race for instance plan cache (#62217)
ref pingcap/tidb#62153
2025-07-04 11:23:21 +00:00
1a3bb653a6 planner: remove the selection above the table dual (#62193)
close pingcap/tidb#62192
2025-07-04 06:13:06 +00:00
15fe8f1be9 telemetry: add telemetry related code back (#61753)
close pingcap/tidb#61766
2025-07-04 05:19:57 +00:00
9f1396b3cb planner: move physical limit related logic into physical op. (#62187)
ref pingcap/tidb#52714
2025-07-04 02:56:33 +00:00
d31c573cf2 planner: remove useless code (#61968) 2025-07-04 00:49:15 +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
be0ce885d0 planner: skip empty expression in the applyPredicateSimplification (#62178)
ref pingcap/tidb#62121
2025-07-03 09:51:18 +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
721ff794d7 planner: move planner used partitionTable interface to base pkg. (#62145)
ref pingcap/tidb#52714
2025-07-02 15:59:48 +00:00
tpp
64b3755e71 planner: Update risk_eq testcase for session vs global (#62123)
ref pingcap/tidb#60722
2025-07-02 14:48:57 +00:00
1c612763c8 planner: Simplify plan cache code.gi (#61906)
close pingcap/tidb#61876
2025-07-02 03:16:54 +00:00
0bf7afe5cd planner: constant folding to isnull(not null column) (#62046)
ref pingcap/tidb#7973, close pingcap/tidb#62050
2025-07-01 15:58:27 +00:00
e85d949105 planner: move all physical union all related logic into physical op dir. (#62098)
ref pingcap/tidb#52714
2025-07-01 13:05:34 +00:00
7faab25597 Planner: allow elimination of aggregation functions in join operations (#61877)
ref pingcap/tidb#61556
2025-07-01 08:52:15 +00:00
94bfb3dd72 planner: move access object interface to base interface dir. (#62091)
ref pingcap/tidb#52714
2025-07-01 06:08:15 +00:00
c5c3793e7e planner: predicate simplification when to push down predicate with LogicalSelection (#61739)
close pingcap/tidb#61489
2025-07-01 04:08:06 +00:00
tpp
2a74539ace planner: extend order ratio to joins (#61687)
close pingcap/tidb#62034
2025-07-01 02:36:18 +00:00
723f117273 planner: classify all nominal related logic into nominal sort op. (#62066)
ref pingcap/tidb#52714
2025-06-30 10:33:15 +00:00
141872ae27 planner: reuse slices when to deal with tiflash predicate push down (#61522) 2025-06-30 09:56:15 +00:00
441cf43bf6 planner: improve TestTiFlashLateMaterialization for readable test result (#62076)
close pingcap/tidb#61989
2025-06-30 04:19:33 +00:00
b3fbdc6e9c planner: lift can-push-to-cop check of expand/unionall/sort. (#62005)
ref pingcap/tidb#62006
2025-06-28 08:46:33 +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
a386a88f98 planner: classify all physical sort related logic into physical op. (#62065)
ref pingcap/tidb#52714
2025-06-28 07:21:09 +00:00
f52d19273b planner: use the current user name when exploring new plans (#62016)
ref pingcap/tidb#60148
2025-06-27 03:20:12 +00:00
e87b8a9566 parser: unified distribute table statement with quotes (#61859)
close pingcap/tidb#61861
2025-06-25 15:38:30 +00:00
a268223774 domain: load system keyspace info schema (#61939)
ref pingcap/tidb#61702
2025-06-25 10:41:57 +00:00
tpp
e34335386f planner: log merge fix control for multiple ranges (#61976)
ref pingcap/tidb#60148
2025-06-25 08:08:48 +00:00
0870187da4 planner: try removing parent operator type assert in implementation of CanPushToCop check (#61879)
ref pingcap/tidb#51664
2025-06-25 04:34:39 +00:00
f28a1e2a13 planner: support explain [analyze] <plan_digest> for explain explore (#61942)
ref pingcap/tidb#60148
2025-06-24 02:54:15 +00:00
642b2c8f02 expression,planner: reuse the propOuterJoinConstSolver to improve performance (#61913)
close pingcap/tidb#61837
2025-06-23 16:03:24 +00:00
1b35bd01b4 ddl,planner: remove unused and meaningless code (#61936) 2025-06-23 13:51:54 +00:00
d3849f5335 planner: remove unused field from physicalTableScan. (#61935) 2025-06-23 13:51:48 +00:00