plusplusjiajia opened a new pull request, #8564:
URL: https://github.com/apache/paimon/pull/8564

    ### Purpose
   
     `type` was missing from `IMMUTABLE_OPTIONS`, so `ALTER TABLE SET 
('type'='format-table')` on a table with data succeeded. The next load then 
builds a different table kind over the existing FileStore layout:
     data files become unreadable, snapshot history is orphaned, and query auth 
(row filters / column masks) is silently bypassed since only FileStore tables 
wire it up.
   
     In-place type change has no supported semantics (no tests/docs; 
`replaceTable()` already does cross-type via drop-and-create), so mark `TYPE` 
`@Immutable` like the other structural options.
   
     ### Tests
   
     `SchemaManagerTest#testAlterImmutableOptionsOnEmptyTable`: `SET 'type'` on 
a table with snapshots now throws `Change 'type' is not supported yet.`
   
     ### API and Format
   
     No format change. `ALTER SET/RESET 'type'` on a table with snapshots 
(previously undefined behavior) is now rejected.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to