1416 Commits

Author SHA1 Message Date
7f129e5b84 planner: fix flaky tests in instanceplancache package (#65619)
Some checks failed
Bazel Crossbuild for TiDB/Lightning / Bazel Crossbuild (macos) (push) Has been cancelled
Bazel Crossbuild for TiDB/Lightning / Bazel Crossbuild (ubuntu) (push) Has been cancelled
close pingcap/tidb#64604
2026-01-19 02:17:20 +00:00
1b2d0b873c planner: make cardinality and selectivity tests ignore plan ID with explain format as brief (#65520)
ref pingcap/tidb#60940
2026-01-19 00:04:56 +00:00
b39a1ca7c0 planner: add the prefix index as candidate for topn optimization (#65533)
fix pingcap/tidb#63280
2026-01-17 14:41:28 +00:00
88d21ed0f9 planner: speed up TestMPPHintsScope with hypo TiFlash replica (#65604)
close pingcap/tidb#65344
2026-01-17 02:39:44 +00:00
c1abcf8e9c s3: split the common code of s3like store (#65602)
ref pingcap/tidb#65461
2026-01-16 08:45:44 +00:00
f8627fd3ff planner: fix the row count for index join use the PK in inner side (#65190)
close pingcap/tidb#65183
2026-01-16 03:17:01 +00:00
53dc671df4 planner: non-deterministic expression can not be pushed down throught the join (#65563)
close pingcap/tidb#65486
2026-01-15 07:05:38 +00:00
tpp
79b2debe2a planner: index pruning using existing infra (#64999)
close pingcap/tidb#63856
2026-01-15 01:11:23 +00:00
27a4771206 bindinfo: save bindinfo into stmtctx to avoid calling NormalizeStmtForBinding and getbindcache repeatedly (#65484)
close pingcap/tidb#65100
2026-01-13 19:55:08 +00:00
b147abe19f planner: support cluster-level binding reload command (#65509)
close pingcap/tidb#65378
2026-01-13 16:29:32 +00:00
28cce6a472 objstore: move s3 like store into separate pkg (#65513)
ref pingcap/tidb#65461
2026-01-12 10:01:26 +00:00
1fe3ea93cc planner: add some plan cache benchmark into bench daily (#65524)
ref pingcap/tidb#65100
2026-01-12 05:58:55 +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
1e2cdaa16f objstore: move from 'br/pkg' to 'pkg/' directory (#65462)
ref pingcap/tidb#65461
2026-01-08 08:50:47 +00:00
0f1f7aa89b planner: outer join cannot be eliminated due to the impact of the expression index (#65187)
close pingcap/tidb#65166
2026-01-05 18:27:14 +00:00
76cbd72ef9 planner: check DROP privilege for TRUNCATE PARTITION statement (#64024) (#64225)
close pingcap/tidb#64024
2026-01-04 14:15:50 +00:00
tpp
007466b089 planner: remove fix control 47400 (#64796)
ref pingcap/tidb#47400
2026-01-03 00:01:50 +00:00
69aa3a99a6 planner: optimize the schema check phase in the plan cache path (#65118)
ref pingcap/tidb#65117
2025-12-31 18:02:26 +00:00
758e5e0791 session: Add a new session variable to control the prefix index optimization for ORDER BY ... LIMIT queries (#65314)
fix pingcap/tidb#63280
2025-12-31 12:48:44 +00:00
02fe040a0f planner: optimize NewPlanCacheKey (#65361)
ref pingcap/tidb#65117
2025-12-31 07:53:17 +00:00
1776433ee0 planner: fix no access path when TiKV read is disabled under RC isolation (#65127)
close pingcap/tidb#65059
2025-12-29 07:23:41 +00:00
03bc2507ca planner: track more details about time spent on query optimization (#65096)
close pingcap/tidb#64375
2025-12-29 06:13:11 +00:00
a842030b18 planner: fix the flaky test TestInstancePlanCacheConcurrencySysbench (#65284)
close pingcap/tidb#65221
2025-12-26 10:42:59 +00:00
0ed6fde69a planner: derivePathStatsAndTryHeuristics can keep more MPP task (#65264)
close pingcap/tidb#65145
2025-12-26 10:42:32 +00:00
9150224427 planner: move MaxMinEliminator to rule package (#65272)
ref pingcap/tidb#55231
2025-12-26 08:26:15 +00:00
ccda674e6b planner: reduce NewPlanCacheKey allocations with sync.Pool (#65072)
ref pingcap/tidb#65117
2025-12-22 11:58:29 +00:00
4915482a36 *: use IsColOpCol to remove the same code (#65144) 2025-12-22 10:08:23 +00:00
ce06e5d382 *: fix index lookup pushdown error for partition table + uncomitted rows (#65157)
close pingcap/tidb#65155
2025-12-22 08:30:40 +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
69f71e4ab1 sem, privilege: fix the issue that some privileges cannot be limited (#64160)
close pingcap/tidb#64159
2025-12-19 07:34:47 +00:00
308789723b planner: fix the flaky test TestTiFlashLateMaterialization (#65119)
close pingcap/tidb#61989
2025-12-18 13:47:29 +00:00
a14f0c8f22 ddl: sync affinity group for pd and support show affinity (#65049)
ref pingcap/tidb#64938
2025-12-17 12:37:56 +00:00
cb08e5eda4 planner: Apply should not be full scan when plan cache enabled (#64646)
close pingcap/tidb#64645
2025-12-16 04:17:14 +00:00
69fb8dbc92 *: support system variable tidb_index_lookup_pushdown_policy and hint NO_INDEX_LOOKUP_PUSHDOWN (#64932)
ref pingcap/tidb#62575
2025-12-15 05:38:47 +00:00
80f74ede58 stats: set the default analyze column options to all (#64994)
ref pingcap/tidb#64992
2025-12-12 23:58:19 +00:00
998137b5e0 planner: Remove redundant null check in matchProperty function (dead code) (#64998)
close pingcap/tidb#64997
2025-12-12 21:53:08 +00:00
5271f751a0 planner: remove code of the deprecated optimizer trace - 5 (#64945)
ref pingcap/tidb#63725
2025-12-12 04:16:26 +00:00
e0813f3a47 planner: Fix bug in the plan cache when the metadata lock is disabled. (#64795)
close pingcap/tidb#64351
2025-12-11 00:35:20 +00:00
7f2f109d34 planner: simplify some estimation code (#64953)
ref pingcap/tidb#63725
2025-12-10 12:09:44 +00:00
fc68c74dbb planner: remove code of the deprecated optimizer trace - 4 (#64929)
ref pingcap/tidb#63725
2025-12-10 02:35:39 +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
tpp
170254e4cb planner: avoid int range for no PK predicates (#64847)
ref pingcap/tidb#64791
2025-12-08 21:22:05 +00:00
5fcd054a62 planner: fix incorrect TblColPosInfo calculation in buildDelete after column pruning (#64698)
close pingcap/tidb#64697
2025-12-08 15:39:29 +00:00
de5c55394f parser: Improve add more table options for compatibility (#64772)
close pingcap/tidb#64771
2025-12-05 09:37:20 +00:00
2042309765 planner,executor: fix cannot dump plan replayer when query happen to panic (#64836)
close pingcap/tidb#64835
2025-12-04 12:13:41 +00:00
5ee17f4a1d *: support for partition table and common handle for index lookup push down (#64839)
ref pingcap/tidb#62575, close pingcap/tidb#64594, close pingcap/tidb#64595
2025-12-04 09:07:23 +00:00
tpp
7d124185db planner: flaky test TestIssue25729 (#64774)
ref pingcap/tidb#63501
2025-12-02 18:41:29 +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
3082092531 planner, session: resolve uppercase/lowercase mismatch for database names in metrics (#64529)
close pingcap/tidb#64560
2025-11-24 06:45:20 +00:00