You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "geruh (via GitHub)" <gi...@apache.org> on 2024/02/20 22:47:34 UTC

[I] Add support for custom header configs in RESTCatalog [iceberg-python]

geruh opened a new issue, #455:
URL: https://github.com/apache/iceberg-python/issues/455

   ### Feature Request / Improvement
   
   I noticed that PyIceberg's RESTCatalog doesn't set custom header configs. This feature is in Java's implementation of the RESTCatalog, and was beneficial when building out my own testing catalog. For instance, my catalog may have a custom content-type header for POST requests. Therefore, my config endpoint can return a config containing this property:
   
   ```
   {
     "defaults": {
       "header.content-type": "application/json-custom"
     },
     "overrides": {}
   }
   ```
   
   Which in the Java implementation will merge this in to the properties and add it as a header for all subsequent requests.
   
   This logic can be followed in the RESTSessionCatalog init method: https://github.com/apache/iceberg/blob/4090a8860061f58748e3faa6804094f90d3575f3/core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java#L165
   
   Is this something, we want to support?
   


-- 
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: issues-unsubscribe@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Add support for custom header configs in RESTCatalog [iceberg-python]

Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko commented on issue #455:
URL: https://github.com/apache/iceberg-python/issues/455#issuecomment-1959197528

   Hey @geruh that's a great catch. I wasn't aware of that piece being missing. It would be great if you want to raise PR to add this 👍 


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Add support for custom header configs in RESTCatalog [iceberg-python]

Posted by "HonahX (via GitHub)" <gi...@apache.org>.
HonahX closed issue #455: Add support for custom header configs in RESTCatalog
URL: https://github.com/apache/iceberg-python/issues/455


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org