rdblue opened a new pull request, #4773:
URL: https://github.com/apache/iceberg/pull/4773

   This adds a `SessionCatalog` interface for engines that share catalog 
instances across sessions.
   
   `SessionCatalog` is like `Catalog`, but passes a `SessionContext` object in 
each call. This session context can be used to carry identity and credentials, 
which are passed through to the catalog service. `SessionCatalog` does not 
extend `Catalog` to avoid bugs where context is accidentally not passed.
   
   Because `SessionCatalog` does not implement `Catalog`, a base implementation 
class is also included in this PR that adapts `SessionCatalog` to `Catalog` 
using `withContext` and `asCatalog` methods. For example:
   
   ```java
     boolean exists = sessionCatalog.withContext(sessionContext, (Catalog 
catalog) -> {
       return catalog.tableExists(tableIdent);
     });
   ```


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to