-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix HDFS test #7418
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
Fix HDFS test #7418
Conversation
| delayed(partial(file_to_blocks, include_path, delimiter=linedelimiter))( | ||
| fil | ||
| delayed(list)( | ||
| delayed( |
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.
I suppose we should explicitly test the output of this branch, one list (len files) of lists (blocks per file) of text.
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.
This was a change introduced accidentally in#7349 I think.
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.
Maybe, but it didn't fail anything right away - there should be a test for db.read_text(fn, collection=False)
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.
I added that in this PR.
|
Phew! Finally fixed all my typos 🙄 https://github.com/dask/dask/pull/7418/checks?check_run_id=2149726436 |
| def test_read_text_unicode_no_collection(): | ||
| data = b"abcd\xc3\xa9" | ||
| fn = "./data.txt" | ||
| with open(fn, "wb") as f: | ||
| f.write(b"\n".join([data, data])) | ||
|
|
||
| f = read_text(fn, collection=False) | ||
|
|
||
| result = f[0].compute() | ||
| assert len(result) == 2 |
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.
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.
perfect
|
Ok I ran hdfs tests on this PR as well to make sure that this fixes the original issue. |
black dask/flake8 daskThis fixes the test failure mentioned in #7366 (comment) and adds a non hdfs test for this case.
Ping @martindurant @jrbourbeau