Commit Graph

43 Commits

Author SHA1 Message Date
2108661cd2 planner: use code-gen to generate CloneForPlanCache method for some operators (#54638)
ref pingcap/tidb#54057
2024-07-16 09:43:30 +00:00
a453b81458 planner: use code-gen to generate CloneForPlanCache method for some operators (#54601)
ref pingcap/tidb#54057
2024-07-15 07:50:58 +00:00
2934442a76 *: optimize the speed of full load (#54185)
ref pingcap/tidb#50959
2024-07-15 04:20:58 +00:00
3a61d79fee planner: add more test cases for Plan.Clone (#54588)
ref pingcap/tidb#54057
2024-07-12 06:40:35 +00:00
b4052bd7f6 Optimizer: Fix range intersection for CNF(conjunctive normal form) (#54166)
close pingcap/tidb#54337
2024-07-03 16:31:28 +00:00
5909899601 expression,*: remove the session context inside ParamMarker (#53534)
close pingcap/tidb#53533
2024-07-03 07:44:58 +00:00
c91bc2014a planner: classsify logical aggregation logic into a seperate file for later pkg move (#54187)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-06-25 10:32:51 +00:00
998dd296f3 planner: move logical schema producer to logical op (#54119)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-06-20 07:13:19 +00:00
3941867b8a planner: introduce a new fix-control 43817 to control whether to allow the optimizer to evaluate non-correlated sub-queries in advance (#53782)
ref pingcap/tidb#43817
2024-06-04 09:52:33 +00:00
5e6df4eeb1 expression, *: Eval param get type with context (#53656)
close pingcap/tidb#53653
2024-06-03 09:39:01 +00:00
57d0b40cd9 planner: move base logical plan to logical operator pkg. (#53293)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-05-27 16:37:19 +00:00
61a2981129 Optimizer: Fix null filtering logic for IN list (#53370)
close pingcap/tidb#49476
2024-05-21 15:34:17 +00:00
6aef624c8d planner: move invalidTask to task base pkg. (#53267)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-05-15 02:25:12 +00:00
a011759595 planner: encapsulate baseLogicalPlan push down topN logic and move addSection to util (#53231)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-05-14 10:37:13 +00:00
4fe70da7e4 planner: move getTaskPlanCost to planner core util (#53218)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-05-13 08:55:11 +00:00
fa94f49919 planner: move loical plan functionality AppendCandidate4PhysicalOptimizeOp to util (#53198)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-05-13 06:10:10 +00:00
ce74191db2 planner: move hash encoding logic and HasMaxOneRow to util (#53161)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-05-11 08:19:09 +00:00
a5c403139b planner: move table sample logic to planner util (#53100)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-05-08 10:47:38 +00:00
788d5050e5 planner: move handle cols to planner util (#53093)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-05-08 04:41:39 +00:00
264cd4e860 planner: move QueryTimeRange structure to util pkg (#53071)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-05-07 11:55:07 +00:00
e0b6b0ce5e planner: add a fix control to allow generate index merge path when normal index lookup path exists (#52872)
close pingcap/tidb#52869
2024-04-26 13:56:57 +00:00
e8c397ff93 planner: collect and move correlated utility to util pkg (#52866)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-04-25 08:10:43 +00:00
e349c7c26b planner: extract null check related code to util null_misc (#52840)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-04-24 07:16:41 +00:00
2ce8b56ace planner: remove internal pkg and move base code to certain place (#52620)
ref pingcap/tidb#51664
2024-04-16 13:54:06 +00:00
1997ff7943 planner: move physical opt and cost misc to util and split plan interface (#52224)
ref pingcap/tidb#52181
2024-04-10 13:45:22 +00:00
482ce59bf6 expression: separate BuildContext and EvalContext (#52311)
close pingcap/tidb#52310
2024-04-03 09:42:24 +00:00
927f3c61ee planner: move logical optimizing trace logic out of core pkg (#52161)
ref pingcap/tidb#51664
2024-03-28 12:09:48 +00:00
ccbab5eeb7 *: Enable plan cache for partitioned tables (#49161)
close pingcap/tidb#33031, close pingcap/tidb#45532
2024-03-12 05:38:08 +00:00
61b66aa837 planner: make index merge union case aware of order property (#49632)
close pingcap/tidb#48359
2024-03-05 12:41:04 +00:00
f1410bf2a8 planner: seperate methods in PlanContext and EvalContext/BuildContext (#51382)
close pingcap/tidb#51381
2024-02-28 11:03:31 +00:00
1ee58bf15b planner: replace context in planbuilder to PlanContext (#51172)
ref pingcap/tidb#51070, close pingcap/tidb#51171
2024-02-21 10:49:57 +00:00
ee1864460f planner: introduce PlanContext to provide context for planner phase (#51074)
close pingcap/tidb#51070
2024-02-08 10:35:47 +00:00
c5eced17d0 expression: remove direct dependencies with sessionctx.Context for package expression (#51025)
close pingcap/tidb#51024
2024-02-08 02:10:15 +00:00
526d738207 expression: refactor functions to build expressions (#50997)
close pingcap/tidb#50996
2024-02-07 03:05:45 +00:00
6e022a5c31 table: introduce MutateContext and AllocatorContext for table.Table (#50862)
close pingcap/tidb#50861
2024-02-01 09:01:54 +00:00
51e1e13494 *: update interface{} to any (#50770)
ref pingcap/tidb#50765
2024-01-29 07:21:29 +00:00
a7ef915052 *: upgrade rules_go (#49693) 2023-12-27 02:15:28 +00:00
a8a7525456 planner: introduce a new fix-control variable to lift all plan cache restrictions for testing (#49754)
close pingcap/tidb#49736
2023-12-25 11:42:26 +00:00
2f2f916926 expression: always use the ctx in parameter for method Equal in all expressions (#48596)
close pingcap/tidb#48595
2023-11-17 05:09:47 +00:00
286e8521ac planner: eliminate useless scalar subqueries in some scenarios of aggregate queries (#47550)
close pingcap/tidb#45822
2023-11-07 02:18:41 +00:00
0172ba0a1a planner: fix the issue that the optimizer terminates the optimization process for DataSource too early (#48186)
close pingcap/tidb#46177
2023-11-03 05:03:38 +00:00
a51ea16fb7 planner: introduce a new fix-control flag to control whether to cache plans that access generated columns (#48011)
ref pingcap/tidb#45798
2023-10-26 16:02:04 +00:00
318e82bbb7 *: move most of the packages to 'pkg' (#47123)
ref pingcap/tidb#41241
2023-10-13 14:36:26 +00:00