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
Currently it is not easy to roundtrip data between Spark and Dask Dataframe with Parquet. There are a variety of details one needs to know to do this well. This would be a good case study to improve our usability.
Understood. To be clear, I'm not speaking about fastparquet, I'm talking about dask.dataframe. My attempt to recreate the workflow above failed with dask dataframe. I think that this is a fairly important issue.
Yes, agree, just thought I'd point it out, the FP tests might serve as a starting point. Would be easy to write out a set of tests like this (not for CI, though, probably), and then fix for FP and Arrow, as needed.
We also have a flavor='spark' argument in pyarrow which handles some of the limitations that the Spark Parquet implementation has. Sadly there are still some features of Parquet that pyarrow uses but Spark cannot handle.
Could be contemplated in the context of #4336 , but interop with arrow more important now that spark per se (plus pyspark's inherent limitations) - so maybe the issue of rountripping to spark should be something that they care about more than we do. In any case, I don't think there are any plans to work on this. I am ambivalent on whether to close.
I care about this. I think that it is important for the Dask project to be
able to easily move data back and forth. I agree with @martindurant that
this might be partially solved by doing work in the Arrow codebase. I'd
still like to keep track of it here.
Activity
mrocklin commentedon Oct 13, 2018
In particular I'm thinking that the following should probably just work for a variety of data types.
martindurant commentedon Oct 13, 2018
Fastparquet does have a number of tests specifically for spark round-tripping: https://github.com/dask/fastparquet/blob/master/fastparquet/test/test_aroundtrips.py
(these are without dask's part, of course)
mrocklin commentedon Oct 13, 2018
Understood. To be clear, I'm not speaking about fastparquet, I'm talking about dask.dataframe. My attempt to recreate the workflow above failed with dask dataframe. I think that this is a fairly important issue.
martindurant commentedon Oct 13, 2018
Yes, agree, just thought I'd point it out, the FP tests might serve as a starting point. Would be easy to write out a set of tests like this (not for CI, though, probably), and then fix for FP and Arrow, as needed.
mrocklin commentedon Oct 13, 2018
martindurant commentedon Oct 13, 2018
It's on the list...
xhochy commentedon Oct 16, 2018
We also have a
flavor='spark'argument inpyarrowwhich handles some of the limitations that the Spark Parquet implementation has. Sadly there are still some features of Parquet thatpyarrowuses but Spark cannot handle.mrocklin commentedon Oct 16, 2018
jakirkham commentedon Apr 30, 2019
Is this still of interest?
martindurant commentedon Apr 30, 2019
Could be contemplated in the context of #4336 , but interop with arrow more important now that spark per se (plus pyspark's inherent limitations) - so maybe the issue of rountripping to spark should be something that they care about more than we do. In any case, I don't think there are any plans to work on this. I am ambivalent on whether to close.
mrocklin commentedon Apr 30, 2019