zhoulii opened a new issue, #8828: URL: https://github.com/apache/paimon/issues/8828
### Search before asking - [x] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar. ### Paimon version 1.4 ### Compute Engine python sdk ### Minimal reproduce step 1. With `FileSystemCatalog`: ``` fs_catalog.alter_table( Identifier("db", "table", branch="dev"), [SchemaChange.add_column("branch_col", AtomicType("STRING"))], ) ``` Reload the main and dev tables. The new column is incorrectly added to main instead of only to dev. 2. Create a table and a branch named dev. With RESTCatalog, load the branch table: ``` table = catalog.get_table(Identifier("db", "table", branch="dev")) assert table.current_branch() == "dev" assert table.schema_manager.branch == "dev" ``` The second assertion fails because schema_manager.branch is main. ### What doesn't meet your expectations? Schema operations should use the branch specified by Identifier. Altering a filesystem branch should not modify the main branch and a REST branch table should read schemas from that branch. Currently, both operations can incorrectly use the main branch. ### Anything else? _No response_ ### Are you willing to submit a PR? - [x] I'm willing to submit a PR! -- 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]
