JingsongLi opened a new pull request, #8112:
URL: https://github.com/apache/paimon/pull/8112
## Summary
- Add `POST
/v1/{prefix}/databases/{db}/tables/{table}/via/{via_db}/{via_object}` REST
endpoint for view penetration
- If the caller has permission on a view, they can access the underlying
table referenced by that view
- Add `getTable(Identifier table, Identifier via)` default method to
`Catalog` interface (defaults to `getTable(table)`)
- Override in `RESTCatalog` to call the new REST endpoint, and delegate in
`DelegateCatalog`
- This API can only be called by trusted engines; the server must
authenticate whether the caller is a trusted engine
## Test plan
- [x] Compilation verified (`mvn compile -pl paimon-api,paimon-core -am
-DskipTests`)
- [x] Test sources compile (`mvn test-compile -pl paimon-core -am
-DskipTests`)
- [ ] CI tests pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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]