You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/07/22 10:22:44 UTC

[GitHub] [arrow] amol- commented on a change in pull request #10769: ARROW-13425: [Archery] Avoid importing PyArrow indirectly

amol- commented on a change in pull request #10769:
URL: https://github.com/apache/arrow/pull/10769#discussion_r674674329



##########
File path: dev/archery/archery/compat.py
##########
@@ -49,3 +50,10 @@ def _stringify_path(path):
             return str(path)
 
     raise TypeError("not a path-like object")
+
+
+def _import_pandas():
+    # ARROW-13425: avoid importing PyArrow from Pandas
+    sys.modules['pyarrow'] = None

Review comment:
       Should we unset this one after pandas has been correctly imported to leave open the possibility for other commands to try import pyarrow? I guess it might just reintroduce the bug again somewhere else and it might just make sense to explicitly document somewhere that `archery` can't depend on `arrow`.




-- 
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: github-unsubscribe@arrow.apache.org

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