You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "kevinjqliu (via GitHub)" <gi...@apache.org> on 2025/02/25 23:14:04 UTC

[PR] fix in-memory [iceberg-python]

kevinjqliu opened a new pull request, #1725:
URL: https://github.com/apache/iceberg-python/pull/1725

   Previously `CatalogType` was fetched by key, `CatalogType[provided_catalog_type.upper()]` (note the bracket)
   This PR changes `CatalogType` to be fetched by value, `CatalogType(provided_catalog_type.lower())` (note the parenthesis)
   
   https://stackoverflow.com/questions/29799235/python-enum-value2member-map-accessor
   
   This fix loading `in-memory` catalog, `load_catalog("catalog", **{"type": "in-memory"})`.
   Previously, `in-memory` was a key error because its key is `IN_MEMORY`. Note the `-` and `_`.
   
   https://github.com/apache/iceberg-python/blob/1d24e71041e35e26e126aa4508ed7384e8aa031c/pyiceberg/catalog/__init__.py#L113-L119
   


-- 
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: [PR] fix loading `in-memory` catalog [iceberg-python]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu merged PR #1725:
URL: https://github.com/apache/iceberg-python/pull/1725


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