blaze / blaze/odo

`HDFS(Directory(cls)).__iter__` broken

Open Beginner friendly
#397 0 comments 0 reactions 0 assignees View on GitHub
bug HDFS
Dominant language
Python
Stars
1k
Forks
131
PR merge metrics
No merged PRs in 30d

Description

Trying to iterate over an `HDFS(Directory(*))` object is broken because of [this line](https://github.com/blaze/odo/blob/master/odo/directory.py#L34), which uses `os.listdir` to find all the files in the directory.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in odo/directory.py at line 34, where Directory iteration obtains the directory contents, and reproduce the failure with an HDFS(Directory(*)) object. Compare the directory-listing behavior available for HDFS with the current iteration path. Done means iterating over the HDFS-backed directory works and covers all entries without relying on an incompatible local-filesystem operation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-engineering
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.