oguzhanunlu opened a new pull request, #16059:
URL: https://github.com/apache/iceberg/pull/16059

   **Summary**
   
   Add `NoSuchWarehouseException` and `ConfigErrorHandler` to handle 404 
responses from the `/v1/config` endpoint when a configured warehouse does not 
exist.
   
   This is the implementation counterpart to the spec change merged in #15746.
   
   **Handling ambiguous 404s**
   
   As discussed in #14965 , a 404 on `/v1/config` could mean either a missing 
warehouse or a misconfigured URL pointing to a non-Iceberg server. The handler 
checks `error.type() != null` to distinguish the two cases: valid Iceberg error 
responses include a `type` field, a required field per schema 
`#/components/schemas/ErrorModel`, while non-Iceberg 404s don't.


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