uranusjr commented on code in PR #31512:
URL: https://github.com/apache/airflow/pull/31512#discussion_r1206527558
##########
airflow/providers/apache/hdfs/hooks/webhdfs.py:
##########
@@ -153,3 +153,16 @@ def load_file(
hdfs_path=destination, local_path=source, overwrite=overwrite,
n_threads=parallelism, **kwargs
)
self.log.debug("Uploaded file %s to %s", source, destination)
+
+ def read_file(self, filename: str) -> str:
+ """
+ Reads a file from HDFS
Review Comment:
```suggestion
"""Reads a file from HDFS.
```
We’re working to comply to this docstring format. The migration is in
progress but this one would break linters when the check is enforced.
--
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]