okumin commented on PR #6171:
URL: https://github.com/apache/hive/pull/6171#issuecomment-3615821342
I verified that a client would see a ForbiddenException for sure
```
trino> select * from iceberg.default.test;
Query 20251205_083416_00005_ntu85 failed: Failed to load view 'test'
io.trino.spi.TrinoException: Failed to load view 'test'
at
io.trino.plugin.iceberg.catalog.rest.TrinoRestCatalog.getIcebergView(TrinoRestCatalog.java:715)
at
io.trino.plugin.iceberg.catalog.rest.TrinoRestCatalog.getView(TrinoRestCatalog.java:686)
at
io.trino.plugin.iceberg.IcebergMetadata.getView(IcebergMetadata.java:3272)
...
Caused by: org.apache.iceberg.exceptions.ForbiddenException: Forbidden:
Access denied: Got exception:
org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAccessControlException
Permission denied: user [trino] does not have [SELECT] privilege on
[default/test]
at
org.apache.iceberg.rest.ErrorHandlers$DefaultErrorHandler.accept(ErrorHandlers.java:236)
```
--
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]