nastra commented on code in PR #12197:
URL: https://github.com/apache/iceberg/pull/12197#discussion_r1995608446
##########
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java:
##########
@@ -1249,7 +1055,10 @@ public boolean viewExists(SessionContext context,
TableIdentifier identifier) {
try {
checkViewIdentifierIsValid(identifier);
if (endpoints.contains(Endpoint.V1_VIEW_EXISTS)) {
- client.head(paths.view(identifier), headers(context),
ErrorHandlers.viewErrorHandler());
+ AuthSession authSession = authManager.contextualSession(context,
catalogAuth);
Review Comment:
```suggestion
AuthSession contextualSession =
authManager.contextualSession(context, catalogAuth);
```
##########
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java:
##########
@@ -1230,13 +1033,16 @@ public List<TableIdentifier> listViews(SessionContext
context, Namespace namespa
do {
queryParams.put("pageToken", pageToken);
+ AuthSession authSession = authManager.contextualSession(context,
catalogAuth);
Review Comment:
```suggestion
AuthSession contextualSession = authManager.contextualSession(context,
catalogAuth);
```
--
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]