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
[Bug]: Invisible column clauses are silently ignored #26860
Local standalone mo-service (1 CN / 1 TN / 1 Log service), MySQL text protocol.
Reproduction
createdatabaserepro;
use repro;
createtablet(id intprimary key, a int, b int default 30);
insert into t values(1,10,20);
altertable t alter column b set invisible;
show create table t;
select*from t;
insert into t values(2,11);
The CREATE TABLE form is also accepted:
createtablet2(id intprimary key, secret int invisible);
Actual result
Both visibility clauses report success but are silently ignored:
SHOW CREATE TABLE and DESC contain no invisible metadata.
SELECT * still returns b/secret.
An implicit INSERT still requires values for all columns, so insert into t values(2,11) fails with a column-count mismatch.
The ALTER no-op was reproduced on a normal indexed column, a table's only column, a primary-key column, and a foreign-key column. Explicit selection and FK enforcement continue only because the columns never become invisible.
Expected result
Invisible-column semantics should be applied, or the unsupported syntax should be rejected explicitly. A successful statement must not be a silent no-op.
Suspected cause
The parser emits AlterColumnOptionSetVisibility, but AlterColumn handles only SET DEFAULT and DROP DEFAULT. The visibility branch does not update any column metadata.
Regression and Extended Verification for #26860 (2026-08-13)
This verification is based on the fix in PR #26909. The fix rejects unsupported INVISIBLE column clauses explicitly,
preventing statements from succeeding while silently leaving columns visible.
SET INVISIBLE is rejected and index/FK metadata remains unchanged.
Boundary: one-column primary-key table
OK
SET VISIBLE succeeds; SET INVISIBLE is rejected and the table remains usable.
MySQL compatibility comparison
Not covered
MatrixOne intentionally rejects unsupported invisible-column syntax; implementing MySQL invisible-column semantics is outside this issue’s acceptance scope.
Findings
The original issue is not reproducible on the verified latest main.
Unsupported INVISIBLE clauses are explicitly rejected instead of being accepted as silent no-ops.
Rejected statements do not mutate the table schema, indexes, foreign keys, or existing data.
The ERROR 1136 result for the original implicit INSERT is expected: the rejected ALTER does not make the defaulted
column invisible.
No unrelated product failures were observed.
The behavioral difference from MySQL invisible-column support is not considered a defect for this issue, because
explicit rejection is within the accepted fix scope.
The test retains the original reproduction and adds coverage for all repaired DDL entry points, supported VISIBLE
controls, rejected-operation state invariants, indexed/FK scenarios, and a one-column boundary case.
Fixed. The original silent no-op is no longer reproducible on the latest main. Unsupported INVISIBLE column
clauses are now explicitly rejected with ERROR 20105: not supported: invisible columns, and rejected statements
leave table metadata unchanged.
The MOTR regression was recorded and replayed successfully.
Activity
slyunnn commentedon Aug 13, 2026
Regression and Extended Verification for #26860 (2026-08-13)
This verification is based on the fix in PR #26909. The fix rejects unsupported INVISIBLE column clauses explicitly,
preventing statements from succeeding while silently leaving columns visible.
Verification Environment
MatrixOne latest local main:
Related fix:
MOTR branch: test/issue-26860-reject-invisible-columns
MOTR commit: 46ba8312a71cb57b0e1d1449e219e6f2423964f2
Deployment topology: local standalone mo-service with 1 CN, 1 TN, and 1 Log service; MySQL text protocol; MOTR
connected to 127.0.0.1:6001.
Not covered: multi-CN/distributed deployment and execution against an external MySQL instance.
What Was Covered
ERROR 20105: not supported: invisible columns; no silent success.SHOW CREATE TABLEremains unchanged andSELECT *continues to return the original visible columns.INSERT INTO t VALUES(2,11)returnsERROR 1136, because the rejected ALTER leaves three visible columns.INSERT INTO t(id,a) VALUES(2,11)succeeds and applies the default value forb.ERROR 20105.SET INVISIBLEis rejected and index/FK metadata remains unchanged.SET VISIBLEsucceeds;SET INVISIBLEis rejected and the table remains usable.Findings
The original issue is not reproducible on the verified latest main.
Unsupported INVISIBLE clauses are explicitly rejected instead of being accepted as silent no-ops.
Rejected statements do not mutate the table schema, indexes, foreign keys, or existing data.
The ERROR 1136 result for the original implicit INSERT is expected: the rejected ALTER does not make the defaulted
column invisible.
No unrelated product failures were observed.
The behavioral difference from MySQL invisible-column support is not considered a defect for this issue, because
explicit rejection is within the accepted fix scope.
MOTR / BVT Coverage
Added regression files:
The test retains the original reproduction and adds coverage for all repaired DDL entry points, supported VISIBLE
controls, rejected-operation state invariants, indexed/FK scenarios, and a one-column boundary case.
Validation results:
./motr --record 14_issue_regression.issue_26860_reject_invisible_columns -v
PASS: 29/29 statements
./motr 14_issue_regression.issue_26860_reject_invisible_columns -v
PASS: 29/29 statements
Final Conclusion
Fixed. The original silent no-op is no longer reproducible on the latest
main. UnsupportedINVISIBLEcolumnclauses are now explicitly rejected with
ERROR 20105: not supported: invisible columns, and rejected statementsleave table metadata unchanged.
The MOTR regression was recorded and replayed successfully.