[ 
https://issues.apache.org/jira/browse/HIVE-29877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HIVE-29877:
----------------------------------
    Labels: pull-request-available  (was: )

> HMSCatalogAdapter fails to route Iceberg REST endpoints containing an 
> optional {prefix}
> ---------------------------------------------------------------------------------------
>
>                 Key: HIVE-29877
>                 URL: https://issues.apache.org/jira/browse/HIVE-29877
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Raghav Aggarwal
>            Assignee: Raghav Aggarwal
>            Priority: Major
>              Labels: pull-request-available
>
> Steps to repro:
> 1. Connect a Spark SQL session to the HMS REST Catalog.
> 2. Configure a prefix by setting: _--conf 
> spark.sql.catalog.local.prefix=my_test_prefix_
> 3. Run any command (e.g., SHOW DATABASES ) ;
>  
> Stacktrace:
> {code:java}
> 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)
>  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to