Repository navigation
Closed
Closed
Copy link
Labels
area/optimizerkind/subtaskseverity/s0Active / top priority for current sprint. Owner has committed to working on it now.
Description
Parent issue
Problem
After FK, multi-target, and synchronous irregular-index routes move off the legacy planner, several smaller ErrUnsupportedDML branches still need an explicit disposition. Some are compatibility workloads; others are sentinels that currently reach buildTableUpdate only because UPDATE has a catch-all.
Known cases on current main include:
- PK/UNIQUE-key updates on
mo_pubs/mo_subs; - the
isEnumOrSetPlanType && AutoIncrbranch, whose legal-schema reachability is unclear; - writable external-table UPDATE, whose tested contract is rejection (
cannot insert/update/delete from external table), not file rewrite; - unsupported table expression/type and empty table-name sentinels;
- any other propagated/unknown
ErrUnsupportedDML; - Iceberg row-level UPDATE, which already has a named specialized planner and must stay outside the legacy bucket.
Required work
For each route, provide code-search evidence and an executable SQL/plan reproduction, then choose exactly one disposition:
- implement with modern
MULTI_UPDATE; - route to a named specialized planner; or
- return a stable user-facing error before locks or mutations.
Specific expectations:
- Preserve pub/sub catalog invariants and authorization behavior.
- Prove the legal reachability of the
ENUM/SET + AutoIncrbranch; if DDL rules make it unreachable, remove the dead branch and retain a negative schema test. - Return the existing writable-external UPDATE rejection directly, without detouring through
buildTableUpdate. - Convert malformed/unsupported table forms to deliberate errors, not compatibility fallbacks.
- Preserve the explicit Iceberg dispatch.
Acceptance criteria
- Every remaining route from [Subtask]: Inventory and instrument legacy UPDATE planner fallbacks #26337 has one documented owner and disposition.
- Every disposition has an executable plan/SQL test; code search alone is not considered proof of runtime reachability.
- Supported cases use
MULTI_UPDATEor a named specialized planner. - Unsupported cases fail before locks/mutations with stable errors.
- Pub/sub behavior preserves catalog invariants and authorization rules.
- The auto-increment/default branch is either reproduced with legal SQL and migrated or proven dead and removed.
- Writable external UPDATE directly preserves the existing rejection contract.
- Unsupported table forms and unknown
ErrUnsupportedDMLvalues cannot callbuildTableUpdate. - Iceberg remains explicitly dispatched and is not counted as legacy UPDATE.
- No catch-all fallback dependency remains for these cases.
Dependencies
- Parent: [Task]: Retire the legacy UPDATE planner and converge on MULTI_UPDATE #26336
- Requires [Subtask]: Inventory and instrument legacy UPDATE planner fallbacks #26337.
- Coordinate with [Subtask]: Move child-side foreign-key UPDATE validation to MULTI_UPDATE #26338–[Subtask]: Move synchronous irregular-index UPDATE maintenance to the modern planner #26341 to avoid duplicate ownership.
Metadata
Metadata
Assignees
Labels
area/optimizerkind/subtaskseverity/s0Active / top priority for current sprint. Owner has committed to working on it now.
Activity
refactor(plan): migrate remaining legacy UPDATE special cases (#26596)
refactor(plan): migrate remaining legacy UPDATE special cases (matrix…
refactor(plan): migrate remaining legacy UPDATE special cases (matrix…
refactor(plan): migrate remaining legacy UPDATE special cases (matrix…