You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure about the dataframe issues, but there's only one issue on the Dask Array side, that manifests only on Sparse tests and when NumPy 1.17 (currently master) is used, as mentioned in #4994.
There's a class of compression-related failures. @martindurant do you have time to investigate? Not sure if it's an environment or compatibility issue.
--- a/dask/bag/tests/test_text.py+++ b/dask/bag/tests/test_text.py@@ -43,6 +43,8 @@ fmt_bs_enc = [(fmt, bs, encoding) for fmt, bs in fmt_bs for encoding in encoding
def test_read_text(fmt, bs, encoding):
if fmt == "zip" and sys.version_info.minor == 5:
pytest.skip("zipfile is read-only on py35")
+ if fmt not in utils.compress:+ pytest.skip("compress function not provided for %s" % fmt)
compress = utils.compress[fmt]
files2 = dict((k, compress(v.encode(encoding))) for k, v in files.items())
with filetexts(files2, mode="b"):
diff --git a/dask/dataframe/io/tests/test_csv.py b/dask/dataframe/io/tests/test_csv.py
index b3bcceb..e9f0110 100644
--- a/dask/dataframe/io/tests/test_csv.py+++ b/dask/dataframe/io/tests/test_csv.py@@ -705,6 +705,8 @@ def test_read_csv_sensitive_to_enforce():
def test_read_csv_compression(fmt, blocksize):
if fmt == "zip" and sys.version_info.minor == 5:
pytest.skip("zipfile is read-only on py35")
+ if fmt not in utils.compress:+ pytest.skip("compress function not provided for %s" % fmt)
files2 = valmap(compress[fmt], csv_files)
with filetexts(files2, mode="b"):
if fmt and blocksize:
(because I added zstd, snappy and lz4 "files" to the available compressions, but dask uses direct functions to produce the test data to be loaded. Could probably be cleaned up to remove dask.bytes.utils.compress altogether and move those to fsspec too)
Activity
pentschev commentedon Jun 24, 2019
I'm not sure about the dataframe issues, but there's only one issue on the Dask Array side, that manifests only on Sparse tests and when NumPy 1.17 (currently master) is used, as mentioned in #4994.
TomAugspurger commentedon Jul 19, 2019
#5056 gets most of them.
There's a class of compression-related failures. @martindurant do you have time to investigate? Not sure if it's an environment or compatibility issue.
https://travis-ci.org/dask/dask/jobs/561013095#L1127
TomAugspurger commentedon Jul 19, 2019
Here's the env for that run: https://travis-ci.org/dask/dask/jobs/561013095#L792. Things look OK at a glance (python-snappy and snappy are both present).
martindurant commentedon Jul 19, 2019
This is in fsspec master only. Can be fixed by
martindurant commentedon Jul 19, 2019
(because I added zstd, snappy and lz4 "files" to the available compressions, but dask uses direct functions to produce the test data to be loaded. Could probably be cleaned up to remove
dask.bytes.utils.compressaltogether and move those to fsspec too)TomAugspurger commentedon Aug 20, 2019
I think we're OK on this for now.