TomTJarosz commented on code in PR #39314:
URL: https://github.com/apache/arrow/pull/39314#discussion_r1434674153
##########
python/pyarrow/pandas-shim.pxi:
##########
@@ -101,8 +101,10 @@ cdef class _PandasAPIShim(object):
self._import_pandas(raise_)
return
- self._tried_importing_pandas = True
- self._import_pandas(raise_)
+ try:
+ self._import_pandas(raise_)
+ finally:
+ self._tried_importing_pandas = True
Review Comment:
Yes I considered adding a lock, but I was a bit concerned about potential
performance implications. May concurrent calls to `_check_import` become a
bottle neck as threads wait to acquire the lock? Thoughts? I will follow your
guidance here.
--
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]