andersbogsnes commented on code in PR #2221:
URL: https://github.com/apache/iceberg-python/pull/2221#discussion_r2216940203
##########
pyiceberg/transforms.py:
##########
@@ -106,6 +109,17 @@
TRUNCATE_PARSER = ParseNumberFromBrackets(TRUNCATE)
+def _try_import(module_name: str, extras_name: str | None = None) ->
types.ModuleType:
+ try:
+ return importlib.import_module(module_name)
+ except ImportError:
+ if extras_name:
+ msg = f"{module_name} needs to be installed. `pip install
pyiceberg[{extras_name}]`"
Review Comment:
Fixed 👍
--
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]