EdenKik commented on issue #13915:
URL: https://github.com/apache/iceberg/issues/13915#issuecomment-3226755423

   > Hi [@EdenKik](https://github.com/EdenKik) thanks for reporting this.
   > 
   > > Even though the table exists and the query succeeds, a 
NoSuchViewException is thrown during the resolution phase - likely due to the 
lookup logic attempting to resolve the identifier as a view first and throwing 
prematurely when the view is not found.
   > 
   > Could you add an example of one operation you tried that threw an 
exception when its not suppose to? And for throwing an exception, is it 
surfaced as HTTP response or just server logs?
   
   I tried creating a schema with Trino, I see stack traces in the catalog pod 
where `loadNamespace()` and `loadNamespaceMetadata()` are invoked (no mention 
of a create operation), yet the schema is still created (I noticed the same 
pattern when creating a table).
   Here is an example of a stack trace:
   
   ```
   org.apache.iceberg.exceptions.RESTException: Unhandled error: 
ErrorResponse(code=404, type=NoSuchNamespaceException, message=Namespace does 
not exist: iceberg_default_schema)
   2025-08-25 10:40:36 org.apache.iceberg.exceptions.NoSuchNamespaceException: 
Namespace does not exist: iceberg_default_schema
   2025-08-25 10:40:36     at 
org.apache.iceberg.jdbc.JdbcCatalog.loadNamespaceMetadata(JdbcCatalog.java:508)
   2025-08-25 10:40:36     at 
org.apache.iceberg.rest.CatalogHandlers.loadNamespace(CatalogHandlers.java:175)
   2025-08-25 10:40:36     at 
org.apache.iceberg.rest.RESTCatalogAdapter.handleRequest(RESTCatalogAdapter.java:351)
   2025-08-25 10:40:36     at 
org.apache.iceberg.rest.RESTServerCatalogAdapter.handleRequest(RESTServerCatalogAdapter.java:42)
   2025-08-25 10:40:36     at 
org.apache.iceberg.rest.RESTCatalogAdapter.execute(RESTCatalogAdapter.java:628)
   2025-08-25 10:40:36     at 
org.apache.iceberg.rest.RESTCatalogAdapter.execute(RESTCatalogAdapter.java:609)
   2025-08-25 10:40:36     at 
org.apache.iceberg.rest.RESTCatalogServlet.execute(RESTCatalogServlet.java:108)
   2025-08-25 10:40:36     at 
org.apache.iceberg.rest.RESTCatalogServlet.doGet(RESTCatalogServlet.java:66)
   2025-08-25 10:40:36     at 
jakarta.servlet.http.HttpServlet.service(HttpServlet.java:500)
   2025-08-25 10:40:36     at 
jakarta.servlet.http.HttpServlet.service(HttpServlet.java:587)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:529)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:822)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1381)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1303)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.Server.handle(Server.java:563)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1598)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:753)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:501)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:287)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
   2025-08-25 10:40:36     at 
org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421)
 
   ```


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