Aggarwal-Raghav commented on PR #6749:
URL: https://github.com/apache/hive/pull/6749#issuecomment-5500354046
**BEFORE:**
```
spark-sql ()> show databases;
26/09/01 19:21:04 ERROR SparkSQLDriver: Failed in [show databases]
org.apache.iceberg.exceptions.BadRequestException: Malformed request: No
route for request: GET v1/my_test_prefix/namespaces
at
org.apache.iceberg.rest.ErrorHandlers$NamespaceErrorHandler.accept(ErrorHandlers.java:276)
at
org.apache.iceberg.rest.ErrorHandlers$NamespaceErrorHandler.accept(ErrorHandlers.java:266)
at
org.apache.iceberg.rest.HTTPClient.throwFailure(HTTPClient.java:242)
at org.apache.iceberg.rest.HTTPClient.execute(HTTPClient.java:347)
at org.apache.iceberg.rest.HTTPClient.execute(HTTPClient.java:299)
at org.apache.iceberg.rest.BaseHTTPClient.get(BaseHTTPClient.java:77)
at
org.apache.iceberg.rest.RESTSessionCatalog.listNamespaces(RESTSessionCatalog.java:776)
at
org.apache.iceberg.catalog.BaseSessionCatalog$AsCatalog.listNamespaces(BaseSessionCatalog.java:139)
at
org.apache.iceberg.rest.RESTCatalog.listNamespaces(RESTCatalog.java:256)
at
org.apache.iceberg.catalog.SupportsNamespaces.listNamespaces(SupportsNamespaces.java:74)
at
org.apache.iceberg.spark.SparkCatalog.listNamespaces(SparkCatalog.java:383)
at
org.apache.spark.sql.execution.command.ShowNamespacesCommand.run(ShowNamespacesCommand.scala:44)
at
org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult$lzycompute(commands.scala:79)
```
**AFTER:**
<img width="1447" height="595" alt="Screenshot 2026-09-02 at 2 15 34 AM"
src="https://github.com/user-attachments/assets/e68910c4-4bea-4602-a1a1-ec8dd58c017f"
/>
HTTP request fired from spark -> HMS IRC: `GET
/iceberg/v1/my_test_prefix/namespaces?pageToken= HTTP/1.1`
--
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]