-
Notifications
You must be signed in to change notification settings - Fork 449
Replace deprecated pyarrow.HadoopFileSystem import with pyarrow.fs.HadoopFileSystem
#870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -49,6 +49,7 @@ | |||||||||||||||||||
| try: | ||||||||||||||||||||
| from pyarrow.fs import FileSelector, HadoopFileSystem | ||||||||||||||||||||
| except ImportError: | ||||||||||||||||||||
| FileSelector = missing_dependency_generator("pyarrow", "hdfs") | ||||||||||||||||||||
| HadoopFileSystem = missing_dependency_generator("pyarrow", "hdfs") | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
Comment on lines
+52
to
54
|
||||||||||||||||||||
| FileSelector = missing_dependency_generator("pyarrow", "hdfs") | |
| HadoopFileSystem = missing_dependency_generator("pyarrow", "hdfs") | |
| _missing_pyarrow_hdfs = missing_dependency_generator("pyarrow", "hdfs") | |
| def FileSelector(*args, **kwargs): | |
| return _missing_pyarrow_hdfs() | |
| def HadoopFileSystem(*args, **kwargs): | |
| return _missing_pyarrow_hdfs() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR title/description says it replaces a deprecated
from pyarrow import HadoopFileSystemimport, but the code already importsHadoopFileSystemfrompyarrow.fshere. Please double-check whether the intended import change is already present on the target branch (and update the PR description/title), or whether this diff is missing the actual deprecated-import replacement.