Move impala imports out of global namespace into tests where its used
See original GitHub issueShould
IbisTestEnv
be using impala when its doing file system testing?
In Ibis filesystems
means actually hdfs
, and hdfs
is only supported with Impala afaik. I thought on moving it inside the backend, but it’s part of the public API, so users may be using it, so it requires more thought, discussion, and probably a deprecation warning first.
In any case, we should be calling pytest with not hdfs
, and that should prevent test_filesystems
from running. But I guess that import is in the global namespace, and that’s causing the issue. Not sure why this is just failing in this PR. If you want to move that import inside the test/tests where it’s being used (assuming it’s not too many) that would be good. Probably better in a separate PR.
Thanks for all the work with this @matthewmturner, really happy to have you fixing all this technical debt.
_Originally posted by @datapythonista in https://github.com/ibis-project/ibis/pull/2435#issuecomment-707612410_
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
I think should be as easy as replacing this:
By
And then removing the import and the initialization of
IbisTestEnv
from the global namespace.closed via #2470