You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Subtask]: Enforce explicit PARTITION restrictions for REPLACE #24953
Honor explicit PARTITION(...) restrictions for REPLACE statements.
Reference case from the parent issue:
createtablet_pr(id intprimary key, v int)
partition by range(id)(
partition p0 values less than (10),
partition p1 values less than (20)
);
insert into t_pr values (1,10),(11,110);
replace into t_pr partition(p0) values (15,150);
Expected MySQL-compatible behavior: fail because (15, 150) does not belong to the explicitly selected p0 partition.
MatrixOne currently inserts the row despite the explicit partition restriction.
Describe implementation you've considered
Propagate explicit partition selections through REPLACE planning/execution and validate every inserted replacement row against the selected partition set. Add tests for both insert-only and duplicate-key replacement paths.
Consolidated into #31084. The reproduction and acceptance requirements remain tracked there; closing this issue does not mean the problem has been fixed.
Activity
XuPeng-SH commentedon Oct 29, 2026
Consolidated into #31084. The reproduction and acceptance requirements remain tracked there; closing this issue does not mean the problem has been fixed.